Skip to content

Commit

Permalink
TL/MLX5: fix tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
MamziB committed Jul 3, 2024
1 parent 157b621 commit 711f798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tl/mlx5/mcast/tl_mlx5_mcast_allgather.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ ucc_status_t ucc_tl_mlx5_mcast_allgather_start(ucc_coll_task_t *coll_task)
/* register the send buffer */
status = ucc_tl_mlx5_mcast_mem_register(comm->ctx, req->ptr, req->length, &reg);
if (UCC_OK != status) {
ucc_free(req);
goto failed;
}
req->rreg = reg;
Expand All @@ -366,6 +365,9 @@ ucc_status_t ucc_tl_mlx5_mcast_allgather_start(ucc_coll_task_t *coll_task)

failed:
tl_warn(UCC_TASK_LIB(task), "mcast start allgather failed:%d", status);
if (req) {
ucc_free(req);
}
coll_task->status = status;
return ucc_task_complete(coll_task);
}
Expand Down Expand Up @@ -410,8 +412,6 @@ void ucc_tl_mlx5_mcast_allgather_progress(ucc_coll_task_t *coll_task)
coll_task->status = UCC_ERR_NO_RESOURCE;
ucc_task_complete(coll_task);
}

return;
}

ucc_status_t ucc_tl_mlx5_mcast_allgather_init(ucc_tl_mlx5_task_t *task)
Expand Down
2 changes: 2 additions & 0 deletions src/components/tl/mlx5/tl_mlx5_coll.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ ucc_status_t ucc_tl_mlx5_coll_mcast_init(ucc_base_coll_args_t *coll_args,
break;
default:
status = UCC_ERR_NOT_SUPPORTED;
tl_trace(team->context->lib, "mcast not supported for this collective type");
goto free_task;
}

*task_h = &(task->super);
Expand Down

0 comments on commit 711f798

Please sign in to comment.