Commit c50f3d6f authored by Chenggang Zhao's avatar Chenggang Zhao
Browse files

Better debugging messages

parent eef7ab50
...@@ -463,8 +463,8 @@ barrier_block(int** barrier_signal_ptrs, int rank) { ...@@ -463,8 +463,8 @@ barrier_block(int** barrier_signal_ptrs, int rank) {
if (__all_sync(0xffffffff, value <= 0)) if (__all_sync(0xffffffff, value <= 0))
break; break;
if (clock64() - start_time > NUM_TIMEOUT_CYCLES and get_lane_id() == 0) { if (clock64() - start_time > NUM_TIMEOUT_CYCLES and thread_id < kNumRanks) {
printf("DeepEP timeout check failed: rank = %d, thread = %d)\n", rank, thread_id); printf("DeepEP timeout check failed: rank = %d, thread = %d, value = %d)\n", rank, thread_id, value);
trap(); trap();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment