Skip to content

Commit

Permalink
Merge pull request #953 from samnordmann/tl_mlx5/fix_a2a_error_handli…
Browse files Browse the repository at this point in the history
…ng_during_team_create

TL/MLX5: fix team init error handling flow
  • Loading branch information
samnordmann authored Apr 11, 2024
2 parents be42729 + 4f44fef commit 06959b9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/tl/mlx5/tl_mlx5_team.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,18 @@ static inline ucc_status_t ucc_tl_mlx5_a2a_team_test(ucc_base_team_t *team)
if (UCC_OK != tl_team->a2a_status.local) {
tl_debug(UCC_TL_TEAM_LIB(tl_team), "failed to init a2a: %s",
ucc_status_string(tl_team->a2a_status.local));
tl_team->a2a_state = TL_MLX5_TEAM_STATE_ALLTOALL_NOT_AVAILABLE;
} else {
tl_team->a2a_state = TL_MLX5_TEAM_STATE_ALLTOALL_READY;
tl_debug(UCC_TL_TEAM_LIB(tl_team), "initialized tl a2a team: %p",
tl_team);
}
tl_team->a2a_state = TL_MLX5_TEAM_STATE_ALLTOALL_READY;
tl_debug(team->context->lib, "initialized tl a2a team: %p", tl_team);
case TL_MLX5_TEAM_STATE_ALLTOALL_READY:
case TL_MLX5_TEAM_STATE_ALLTOALL_NOT_AVAILABLE:
return UCC_OK;
default:
tl_error(team->context->lib, "unknown state during a2a team: %p create", tl_team);
tl_error(UCC_TL_TEAM_LIB(tl_team),
"unknown state during a2a team: %p create", tl_team);
return UCC_ERR_NO_RESOURCE;
}
}
Expand Down

0 comments on commit 06959b9

Please sign in to comment.