@@ -21,6 +21,8 @@ dnl Copyright (c) 2021 Nanook Consulting. All rights reserved.
21
21
dnl Copyright (c) 2021-2022 IBM Corporation. All rights reserved.
22
22
dnl Copyright (c) 2023-2024 Jeffrey M. Squyres. All rights reserved.
23
23
dnl Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved.
24
+ dnl Copyright (c) 2025 Triad National Security, LLC. All rights
25
+ dnl reserved.
24
26
dnl $COPYRIGHT$
25
27
dnl
26
28
dnl Additional copyrights may follow
@@ -98,6 +100,7 @@ OPAL_VAR_SCOPE_PUSH([prrte_setup_internal_happy prrte_setup_external_happy targe
98
100
AS_IF ( [ test "$prrte_setup_external_happy" = "0" -a "$prrte_setup_internal_happy" = "1"] ,
99
101
[ opal_prrte_mode="internal"
100
102
OMPI_USING_INTERNAL_PRRTE=1
103
+ OMPI_HAVE_PRTE_LAUNCH=1
101
104
_OMPI_SETUP_PRRTE_INTERNAL_POST()] ,
102
105
[ OMPI_USING_INTERNAL_PRRTE=0] )
103
106
@@ -124,6 +127,9 @@ OPAL_VAR_SCOPE_PUSH([prrte_setup_internal_happy prrte_setup_external_happy targe
124
127
AC_SUBST ( OMPI_SCHIZO_OMPI_RST_CONTENT_DIR )
125
128
AM_CONDITIONAL(OMPI_HAVE_PRRTE_RST, [ test $OMPI_HAVE_PRRTE_RST -eq 1] )
126
129
130
+ AC_DEFINE_UNQUOTED ( [ OMPI_HAVE_PRTE_LAUNCH] , $OMPI_HAVE_PRTE_LAUNCH ,
131
+ [ Whether prte_launch support available] )
132
+
127
133
OPAL_SUMMARY_ADD([ Miscellaneous] , [ PRRTE] , [ ] , [ $opal_prrte_mode] )
128
134
129
135
OPAL_VAR_SCOPE_POP
@@ -197,6 +203,9 @@ AC_DEFUN([_OMPI_SETUP_PRRTE_INTERNAL], [
197
203
opal_prrte_CPPFLAGS_save="${CPPFLAGS}"
198
204
OPAL_FLAGS_APPEND_UNIQ([ CPPFLAGS] , [ ${opal_pmix_CPPFLAGS}] )
199
205
206
+ AC_DEFINE_UNQUOTED ( [ OMPI_HAVE_PRTE_LAUNCH] , [ 1] ,
207
+ [ prte_launch support available in ompi (aka internal) prrte] )
208
+
200
209
AC_MSG_CHECKING ( [ if PMIx version is 4.0.0 or greater] )
201
210
AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <pmix_version.h>] ] ,
202
211
[ [
@@ -299,6 +308,11 @@ AC_DEFUN([_OMPI_SETUP_PRRTE_EXTERNAL], [
299
308
AS_IF ( [ test "${ompi_setup_prrte_cv_version_happy}" = "no"] ,
300
309
[ setup_prrte_external_happy="no"] ) ] )
301
310
311
+ AS_IF ( [ test "${setup_prrte_external_happy}" = "yes"] ,
312
+ [ AC_CHECK_DECL ( [ prte_launch] ,
313
+ [ OMPI_HAVE_PRTE_LAUNCH=1] , [ OMPI_HAVE_PRTE_LAUNCH=0] ,
314
+ [ #include "prte.h"] ) ] ,[ ] )
315
+
302
316
CPPFLAGS="$opal_prrte_CPPFLAGS_save"
303
317
304
318
# If an external build and the user told us where to find PRRTE,
0 commit comments