Skip to content

Commit bbc863e

Browse files
authored
Merge pull request #9573 from wzamazon/v5.0.x_evt_once
ompi/runtime: add instead of set opal_progress_event_flags
2 parents c41c119 + 383307e commit bbc863e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/runtime/ompi_mpi_init.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,8 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided,
995995
CPU utilization for the remainder of MPI_INIT when we are
996996
blocking on RTE-level events, but may greatly reduce non-TCP
997997
latency. */
998-
opal_progress_set_event_flag(OPAL_EVLOOP_NONBLOCK);
998+
int old_event_flags = opal_progress_set_event_flag(0);
999+
opal_progress_set_event_flag(old_event_flags | OPAL_EVLOOP_NONBLOCK);
9991000
#endif
10001001

10011002
/* wire up the mpi interface, if requested. Do this after the

0 commit comments

Comments
 (0)