Skip to content

Commit

Permalink
TL/MLX5: fix msgsize computation
Browse files Browse the repository at this point in the history
  • Loading branch information
samnordmann committed Jul 13, 2023
1 parent 8d37b72 commit 33c1ee5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/tl/mlx5/alltoall/alltoall_coll.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,9 @@ UCC_TL_MLX5_PROFILE_FUNC(ucc_status_t, ucc_tl_mlx5_alltoall_init,
return UCC_ERR_NOT_SUPPORTED;
}

msg_size = coll_args->args.src.info.count / UCC_TL_TEAM_SIZE(tl_team) *
ucc_dt_size(coll_args->args.src.info.datatype);
msg_size = (coll_args->args.src.info.count *
ucc_dt_size(coll_args->args.src.info.datatype)) /
UCC_TL_TEAM_SIZE(tl_team);
if (!msg_size) {
tl_trace(UCC_TL_TEAM_LIB(tl_team),
"msg size too short, reduces to nullop");
Expand Down

0 comments on commit 33c1ee5

Please sign in to comment.