Skip to content

Commit 8a6dc0b

Browse files
author
Ralph Castain
authored
Merge pull request #5456 from rhc54/topic/px
Default to internal PMIx if newer than external
2 parents bdb6ece + 1e6aaf7 commit 8a6dc0b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

config/opal_check_pmi.m4

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
375375
#endif
376376
], [])],
377377
[AC_MSG_RESULT([found])
378-
opal_external_pmix_version=1.2.x
378+
opal_external_pmix_version=1x
379379
opal_external_pmix_version_found=1
380380
opal_external_have_pmix1=1
381381
opal_external_pmix_happy=yes],
@@ -402,6 +402,15 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
402402
AC_MSG_WARN([header/library files were not found])
403403
AC_MSG_ERROR([Cannot continue])])
404404
405+
# Final check - if they didn't point us explicitly at an external version
406+
# but we found one anyway, use the internal version if it is higher
407+
AS_IF([test "$opal_external_pmix_version" != "internal" && (test -z "$with_pmix" || test "$with_pmix" = "yes")],
408+
[AS_IF([test "$opal_external_pmix_version" != "3x"],
409+
[AC_MSG_WARN([discovered external PMIx version is less than internal version 3.x])
410+
AC_MSG_WARN([using internal PMIx])
411+
opal_external_pmix_version=internal
412+
opal_external_pmix_happy=no])])
413+
405414
AC_MSG_CHECKING([PMIx version to be used])
406415
AS_IF([test "$opal_external_pmix_happy" = "yes"],
407416
[AC_MSG_RESULT([external($opal_external_pmix_version)])
@@ -415,8 +424,8 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
415424
[Whether the external PMIx library is v1])
416425
AM_CONDITIONAL([OPAL_WANT_PRUN], [test "$opal_prun_happy" = "yes"])
417426
418-
AS_IF([test "$opal_external_pmix_version" = "1.2.x"],
419-
[OPAL_SUMMARY_ADD([[Miscellaneous]],[[PMIx support]], [opal_pmix], [$opal_external_pmix_version: WARNING - DYNAMIC OPS NOT SUPPORTED])],
427+
AS_IF([test "$opal_external_pmix_version" = "1x"],
428+
[OPAL_SUMMARY_ADD([[Miscellaneous]],[[PMIx support]], [opal_pmix], [1.2.x: WARNING - DYNAMIC OPS NOT SUPPORTED])],
420429
[OPAL_SUMMARY_ADD([[Miscellaneous]],[[PMIx support]], [opal_pmix], [$opal_external_pmix_version])])
421430
422431
OPAL_VAR_SCOPE_POP

opal/mca/pmix/ext1x/configure.m4

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ AC_DEFUN([MCA_opal_pmix_ext1x_CONFIG],[
3333
AS_IF([test "$opal_external_pmix_happy" = "yes"],
3434
[ # check for the 1.x version ( >= 1.1.4 ?)
3535
AC_MSG_CHECKING([if external component is version 1.x])
36-
AS_IF([test "$opal_external_pmix_version" = "11" ||
37-
test "$opal_external_pmix_version" = "12" ||
38-
test "$opal_external_pmix_version" = "1x"],
36+
AS_IF([test "$opal_external_pmix_version" = "1x"],
3937
[AC_MSG_RESULT([yes])
4038
AS_IF([test "$opal_event_external_support" != "yes"],
4139
[AC_MSG_WARN([EXTERNAL PMIX SUPPORT REQUIRES USE OF EXTERNAL LIBEVENT])

0 commit comments

Comments
 (0)