Skip to content

Commit

Permalink
TL/NCCL: disable for team size 1 (openucx#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei-Lebedev authored Jan 10, 2023
1 parent 0eb1088 commit e9eb0db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/tl/nccl/tl_nccl_team.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ UCC_CLASS_INIT_FUNC(ucc_tl_nccl_team_t, ucc_base_context_t *tl_context,
UCC_CLASS_CALL_SUPER_INIT(ucc_tl_team_t, &ctx->super, params);

size = UCC_TL_TEAM_SIZE(self);
if (size < 2) {
tl_debug(tl_context->lib,
"team size %d is too small, minimal size is 2",
UCC_TL_TEAM_SIZE(self));
return UCC_ERR_NOT_SUPPORTED;
}
self->comm_state = UCC_OK;
self->unique_id = ucc_malloc(sizeof(ncclUniqueId) * (size + 1),
"tl_nccl_unique_id");
Expand Down

0 comments on commit e9eb0db

Please sign in to comment.