Skip to content

Commit fe9afee

Browse files
committed
Keep team_translate rework.
1 parent 64be446 commit fe9afee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/runtime-libraries/mpi/mpi_caf.c

+11
Original file line numberDiff line numberDiff line change
@@ -5752,7 +5752,18 @@ team_translate(int *remote_image, int *this_image, caf_token_t token,
57525752

57535753
#ifdef GCC_GE_15
57545754
if (team)
5755+
{
5756+
caf_team_stack_node_t *cur = current_team;
5757+
while (cur && cur->team_list_elem != *team)
5758+
cur = cur->parent;
5759+
if (!cur)
5760+
{
5761+
caf_internal_error("Team %d is not active", stat, NULL, 0,
5762+
(*(caf_teams_list_t **)team)->team_id);
5763+
return false;
5764+
}
57555765
comm = (*(caf_teams_list_t **)team)->communicator;
5766+
}
57565767
else if (team_number)
57575768
{
57585769
bool found = false;

0 commit comments

Comments
 (0)