Skip to content

Commit

Permalink
CODESTYLE: Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarka committed Sep 18, 2024
1 parent 5d1b2b0 commit 12ebfd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions src/components/cl/basic/cl_basic_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ ucc_cl_basic_get_context_attr(const ucc_base_context_t *context,

ucc_base_ctx_attr_clear(attr);

/* CL BASIC reports topo_required if any of the TL available
* TL contexts needs it
*/
for (i = 0; i < ctx->super.n_tl_ctxs; i++) {
memset(&tl_attr, 0, sizeof(tl_attr));
status = UCC_TL_CTX_IFACE(ctx->super.tl_ctxs[i])
Expand Down
8 changes: 0 additions & 8 deletions src/components/tl/ucp/tl_ucp_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,14 +630,6 @@ ucc_status_t ucc_tl_ucp_get_context_attr(const ucc_base_context_t *context,
ONESIDED_SYNC_SIZE + ONESIDED_REDUCE_SIZE;
}

if (attr->attr.mask & UCC_CONTEXT_ATTR_FIELD_TYPE) {
attr->attr.type = UCC_CONTEXT_EXCLUSIVE;
}

if (attr->attr.mask & UCC_CONTEXT_ATTR_FIELD_SYNC_TYPE) {
attr->attr.sync_type = UCC_NO_SYNC_COLLECTIVES;
}

attr->topo_required = ctx->topo_required;

return UCC_OK;
Expand Down

0 comments on commit 12ebfd3

Please sign in to comment.