Skip to content

Commit 9b1c67a

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 <[email protected]>
1 parent c05c23b commit 9b1c67a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ompi/instance/instance.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,13 @@ 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+
fprintf(stderr, "turning on yieldy thingy\n");
405+
ompi_mpi_yield_when_idle = true;
406+
}
407+
401408

402409
/* Register the default errhandler callback */
403410
/* give it a name so we can distinguish it */

0 commit comments

Comments
 (0)