Skip to content

Commit 1bb8747

Browse files
authored
Merge pull request #2453 from artpol84/lazy_wait_v2.x
ompi/mpi_init: lazy-wait during PMIx fence execution
2 parents a43ab4c + ff5565f commit 1bb8747

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ompi/runtime/ompi_mpi_init.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
2121
* Copyright (c) 2014-2015 Research Organization for Information Science
2222
* and Technology (RIST). All rights reserved.
23+
* Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
2324
*
2425
* $COPYRIGHT$
2526
*
@@ -639,7 +640,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
639640
if (NULL != opal_pmix.fence_nb) {
640641
opal_pmix.fence_nb(NULL, opal_pmix_collect_all_data,
641642
fence_release, (void*)&active);
642-
OMPI_WAIT_FOR_COMPLETION(active);
643+
OMPI_LAZY_WAIT_FOR_COMPLETION(active);
643644
} else {
644645
opal_pmix.fence(NULL, opal_pmix_collect_all_data);
645646
}
@@ -809,7 +810,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
809810
if (NULL != opal_pmix.fence_nb) {
810811
opal_pmix.fence_nb(NULL, opal_pmix_collect_all_data,
811812
fence_release, (void*)&active);
812-
OMPI_WAIT_FOR_COMPLETION(active);
813+
OMPI_LAZY_WAIT_FOR_COMPLETION(active);
813814
} else {
814815
opal_pmix.fence(NULL, opal_pmix_collect_all_data);
815816
}

0 commit comments

Comments
 (0)