Skip to content

Commit

Permalink
TL/CUDA: fixed double buffered offset
Browse files Browse the repository at this point in the history
  • Loading branch information
ikryukov committed Feb 4, 2025
1 parent e0a00fb commit 5f44941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tl/cuda/bcast/bcast_linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ static void ucc_tl_cuda_bcast_linear_progress(ucc_coll_task_t *coll_task)
// need to copy from root's scratch buffer
dbuf = PTR_OFFSET(task->bcast_linear.sbuf, offset_buff);
sbuf = PTR_OFFSET(TASK_SCRATCH(task, task->bcast_linear.root),
task->bcast_linear.step % 2 * chunk_size);
task->bcast_linear.step % 2 * half_scratch_size);
st = ecopy(dbuf, sbuf, chunk_size, exec,
&task->bcast_linear.exec_task);
if (st != UCC_OK) {
Expand Down

0 comments on commit 5f44941

Please sign in to comment.