Skip to content

Commit

Permalink
CORE: Fix asym mem for triggered tasks (openucx#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarka authored Sep 30, 2024
1 parent 8eccd57 commit c11c0ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/schedule/ucc_schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ ucc_status_t ucc_coll_task_init(ucc_coll_task_t *task,
task->post = ucc_dummy_post;
task->finalize = ucc_dummy_finalize;
task->progress = ucc_dummy_progress;

// Prevent asymmetric memory copy-out of garbage address at task complete
task->bargs.asymmetric_save_info.scratch = NULL;

if (bargs) {
memcpy(&task->bargs, bargs, sizeof(*bargs));
}
Expand Down

0 comments on commit c11c0ab

Please sign in to comment.