From f4156d3193869a42fdcfd660a5e959635fbcb469 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Wed, 25 May 2022 12:31:20 -0600 Subject: [PATCH] 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 --- ompi/instance/instance.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ompi/instance/instance.c b/ompi/instance/instance.c index 03dad6faebd..704135b21f6 100644 --- a/ompi/instance/instance.c +++ b/ompi/instance/instance.c @@ -398,6 +398,12 @@ static int ompi_mpi_instance_init_common (void) OMPI_TIMING_IMPORT_OPAL("rte_init"); ompi_rte_initialized = true; + /* if we are oversubscribed, then set yield_when_idle + * accordingly */ + if (ompi_mpi_oversubscribed) { + ompi_mpi_yield_when_idle = true; + } + /* Register the default errhandler callback */ /* give it a name so we can distinguish it */