Skip to content

Commit 528ff5d

Browse files
authored
Merge pull request #10428 from hppritcha/swat_issue_10426
oversubscribe: put back in a bit of code squashed by sessions
2 parents c05c23b + f4156d3 commit 528ff5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ompi/instance/instance.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,12 @@ static int ompi_mpi_instance_init_common (void)
398398
OMPI_TIMING_IMPORT_OPAL("rte_init");
399399

400400
ompi_rte_initialized = true;
401+
/* if we are oversubscribed, then set yield_when_idle
402+
* accordingly */
403+
if (ompi_mpi_oversubscribed) {
404+
ompi_mpi_yield_when_idle = true;
405+
}
406+
401407

402408
/* Register the default errhandler callback */
403409
/* give it a name so we can distinguish it */

0 commit comments

Comments
 (0)