Skip to content
Snippets Groups Projects
Commit 41a53859 authored by Oskar Lappi's avatar Oskar Lappi
Browse files

Added debug prints

parent da2662ba
Branches
Tags v0.1.0
No related merge requests found
......@@ -267,8 +267,14 @@ struct network {
auto stream_range = stream_id / msg_tag_decode::stream_range_size(comm_engine.cfg.flow_mask);
mpi_logf<log_level::verboser>("[network] produce_msg: stream %lu deduced to be in stream range "
"%lu. The minimum legal stream range is %lu\n",
stream_id, stream_range, min_legal_stream_range);
// Send condition 2: the flow's stream range condition is ok
if (stream_range < min_legal_stream_range) {
mpi_logf<log_level::verboser>("[network] produce_msg: Error: stream range %lu < %lu", stream_range,
min_legal_stream_range);
throw std::runtime_error("Trying to send stream from way before\n");
}
if (stream_range > min_legal_stream_range + 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment