Skip to content

Commit f4156d3

Browse files
committed
oversubscribe: put back in a bit of code squashed by sessions
The sessions related commit 7291361 inadvertenly removed a bit of commit 2b335ed. Put it back in. Leave a chatty string to help with testing. this will be removed before merging. Related to issue #10426 Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent c05c23b commit f4156d3

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)