Skip to content

Commit f7789ec

Browse files
committed
Fix team unrolling for presence of lwt
1 parent d9b1d61 commit f7789ec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

runtime/src/ompt-specific.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ __ompt_get_teaminfo(int depth, int *size)
6060

6161
// next heavyweight team (if any) after
6262
// lightweight teams are exhausted
63-
if (!lwt && team) team=team->t.t_parent;
63+
if (!lwt && team) {
64+
team=team->t.t_parent;
65+
if (team) {
66+
lwt = LWT_FROM_TEAM(team);
67+
}
68+
}
6469

6570
depth--;
6671
}

0 commit comments

Comments
 (0)