|
20 | 20 | * Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
|
21 | 21 | * Copyright (c) 2014-2016 Research Organization for Information Science
|
22 | 22 | * and Technology (RIST). All rights reserved.
|
| 23 | + * Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved. |
23 | 24 | *
|
24 | 25 | * $COPYRIGHT$
|
25 | 26 | *
|
@@ -279,7 +280,6 @@ opal_list_t ompi_registered_datareps = {{0}};
|
279 | 280 |
|
280 | 281 | bool ompi_enable_timing = false, ompi_enable_timing_ext = false;
|
281 | 282 | extern bool ompi_mpi_yield_when_idle;
|
282 |
| -extern bool ompi_mpi_lazy_wait_in_init; |
283 | 283 | extern int ompi_mpi_event_tick_rate;
|
284 | 284 |
|
285 | 285 | /**
|
@@ -529,11 +529,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
529 | 529 | opal_pmix.register_evhandler(NULL, &info, ompi_errhandler_callback,
|
530 | 530 | ompi_errhandler_registration_callback,
|
531 | 531 | (void*)&errtrk);
|
532 |
| - if( ompi_mpi_lazy_wait_in_init ){ |
533 |
| - OMPI_LAZY_WAIT_FOR_COMPLETION(errtrk.active); |
534 |
| - } else { |
535 |
| - OMPI_WAIT_FOR_COMPLETION(errtrk.active); |
536 |
| - } |
| 532 | + OMPI_LAZY_WAIT_FOR_COMPLETION(errtrk.active); |
537 | 533 |
|
538 | 534 | OPAL_LIST_DESTRUCT(&info);
|
539 | 535 | if (OPAL_SUCCESS != errtrk.status) {
|
@@ -660,11 +656,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
660 | 656 | if (NULL != opal_pmix.fence_nb) {
|
661 | 657 | opal_pmix.fence_nb(NULL, opal_pmix_collect_all_data,
|
662 | 658 | fence_release, (void*)&active);
|
663 |
| - if( ompi_mpi_lazy_wait_in_init ){ |
664 |
| - OMPI_LAZY_WAIT_FOR_COMPLETION(active); |
665 |
| - } else { |
666 |
| - OMPI_WAIT_FOR_COMPLETION(active); |
667 |
| - } |
| 659 | + OMPI_LAZY_WAIT_FOR_COMPLETION(active); |
668 | 660 | } else {
|
669 | 661 | opal_pmix.fence(NULL, opal_pmix_collect_all_data);
|
670 | 662 | }
|
@@ -841,11 +833,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
841 | 833 | if (NULL != opal_pmix.fence_nb) {
|
842 | 834 | opal_pmix.fence_nb(NULL, opal_pmix_collect_all_data,
|
843 | 835 | fence_release, (void*)&active);
|
844 |
| - if( ompi_mpi_lazy_wait_in_init ){ |
845 |
| - OMPI_LAZY_WAIT_FOR_COMPLETION(active); |
846 |
| - } else { |
847 |
| - OMPI_WAIT_FOR_COMPLETION(active); |
848 |
| - } |
| 836 | + OMPI_LAZY_WAIT_FOR_COMPLETION(active); |
849 | 837 | } else {
|
850 | 838 | opal_pmix.fence(NULL, opal_pmix_collect_all_data);
|
851 | 839 | }
|
|
0 commit comments