Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TL/SHARP: Prevent sharp team with team max ppn > 1 #761

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

bureddy
Copy link
Collaborator

@bureddy bureddy commented Mar 30, 2023

No description provided.

@bureddy bureddy added this to the v1.2.0 Release milestone Mar 30, 2023
@bureddy bureddy requested a review from Sergei-Lebedev March 31, 2023 00:16
@bureddy bureddy requested a review from manjugv March 31, 2023 19:54
}

if (ucc_topo_max_ppn(self->topo) != 1) {
tl_info(ctx->super.super.lib, "sharp team not supported with ppn > 1");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to tl_debug


if (ucc_topo_max_ppn(self->topo) != 1) {
tl_info(ctx->super.super.lib, "sharp team not supported with ppn > 1");
return UCC_ERR_NOT_SUPPORTED;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when return from team create function with error status you need to cleanup all resources allocated since destructor will not be called. Here need to free ucc_topo

@@ -136,7 +138,8 @@ UCC_CLASS_INIT_FUNC(ucc_tl_sharp_team_t, ucc_base_context_t *tl_context,
goto cleanup;
}

tl_debug(self->super.super.context->lib, "initialized tl team: %p", self);
tl_debug(self->super.super.context->lib, "initialized tl team: %p size:%d",
self, UCC_TL_TEAM_SIZE(self));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

return status;
}

if (ucc_topo_max_ppn(self->topo) != 1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we make param for it? Do we sometimes want to allow sharp when ppn > 1?

@bureddy
Copy link
Collaborator Author

bureddy commented Apr 13, 2023

bot:retest

@Sergei-Lebedev Sergei-Lebedev merged commit ce347c9 into openucx:master Apr 17, 2023
@bureddy bureddy deleted the sharp-team branch April 18, 2023 14:13
janjust pushed a commit to janjust/ucc that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants