From 53a808e35f1a7dfb869f67bdd906641021c3d5a5 Mon Sep 17 00:00:00 2001 From: Devendar Bureddy Date: Tue, 30 Jan 2024 03:35:36 -0800 Subject: [PATCH] TL/CUDA: initialize remote cuda scratch to NULL (#908) --- src/components/tl/cuda/tl_cuda_team.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/tl/cuda/tl_cuda_team.c b/src/components/tl/cuda/tl_cuda_team.c index faa2ad89cf..64123a8cea 100644 --- a/src/components/tl/cuda/tl_cuda_team.c +++ b/src/components/tl/cuda/tl_cuda_team.c @@ -219,6 +219,11 @@ ucc_status_t ucc_tl_cuda_team_create_test(ucc_base_team_t *tl_team) } team->oob.req_free(team->oob_req); team->oob_req = (void*)0x1; + + for (i = 0; i < UCC_TL_TEAM_SIZE(team); i++) { + team->scratch.rem[i] = NULL; + } + status = ucc_tl_cuda_team_topo_create(&team->super, &team->topo); if (status != UCC_OK) { goto exit_err;