Skip to content

Commit

Permalink
TL/CUDA: fix step check
Browse files Browse the repository at this point in the history
  • Loading branch information
ikryukov authored and Ilya Kryukov committed Jul 4, 2024
1 parent 9333f41 commit 00f3922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tl/cuda/bcast/bcast_linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void ucc_tl_cuda_bcast_linear_progress(ucc_coll_task_t *coll_task)
}
task->bcast_linear.stage = STAGE_COPY;
// ucc_info("all others ready for next step");
if (task->bcast_linear.stage < task->bcast_linear.num_steps) {
if (task->bcast_linear.step < task->bcast_linear.num_steps) {
task->bcast_linear.stage = STAGE_COPY;
} else {
task->bcast_linear.stage = STAGE_DONE;
Expand Down Expand Up @@ -241,9 +241,9 @@ void ucc_tl_cuda_bcast_linear_progress(ucc_coll_task_t *coll_task)
set_rank_step(task, trank, task->bcast_linear.step, 0);
// task->bcast_linear.stage =
// STAGE_DONE; // TODO: just for debug
if (task->bcast_linear.stage <
if (task->bcast_linear.step <
task->bcast_linear.num_steps) {
task->bcast_linear.stage = STAGE_COPY;
task->bcast_linear.stage = STAGE_WAIT_ROOT;
} else {
task->bcast_linear.stage = STAGE_DONE;
}
Expand Down

0 comments on commit 00f3922

Please sign in to comment.