Skip to content

Commit 7fc45ed

Browse files
committed
ompi/mpi_init: fix barrier
Relax CPU usage pressure from the application processes when doing modex and barrier in ompi_mpi_init. We see significant latencies in SLURM/pmix plugin barrier progress because app processes are aggressively call opal_progress pushing away daemon process doing collective progress.
1 parent eae9d31 commit 7fc45ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/runtime/ompi_mpi_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
658658
if (NULL != opal_pmix.fence_nb) {
659659
opal_pmix.fence_nb(NULL, opal_pmix_collect_all_data,
660660
fence_release, (void*)&active);
661-
OMPI_WAIT_FOR_COMPLETION(active);
661+
OMPI_LAZY_WAIT_FOR_COMPLETION(active);
662662
} else {
663663
opal_pmix.fence(NULL, opal_pmix_collect_all_data);
664664
}
@@ -835,7 +835,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
835835
if (NULL != opal_pmix.fence_nb) {
836836
opal_pmix.fence_nb(NULL, opal_pmix_collect_all_data,
837837
fence_release, (void*)&active);
838-
OMPI_WAIT_FOR_COMPLETION(active);
838+
OMPI_LAZY_WAIT_FOR_COMPLETION(active);
839839
} else {
840840
opal_pmix.fence(NULL, opal_pmix_collect_all_data);
841841
}

0 commit comments

Comments
 (0)