@@ -21,6 +21,8 @@ dnl Copyright (c) 2021 Nanook Consulting. All rights reserved.
2121dnl Copyright (c) 2021-2022 IBM Corporation. All rights reserved.
2222dnl Copyright (c) 2023-2024 Jeffrey M. Squyres. All rights reserved.
2323dnl Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved.
24+ dnl Copyright (c) 2025 Triad National Security, LLC. All rights
25+ dnl reserved.
2426dnl $COPYRIGHT$
2527dnl
2628dnl Additional copyrights may follow
@@ -98,6 +100,7 @@ OPAL_VAR_SCOPE_PUSH([prrte_setup_internal_happy prrte_setup_external_happy targe
98100 AS_IF ( [ test "$prrte_setup_external_happy" = "0" -a "$prrte_setup_internal_happy" = "1"] ,
99101 [ opal_prrte_mode="internal"
100102 OMPI_USING_INTERNAL_PRRTE=1
103+ OMPI_HAVE_PRTE_LAUNCH=1
101104 _OMPI_SETUP_PRRTE_INTERNAL_POST()] ,
102105 [ OMPI_USING_INTERNAL_PRRTE=0] )
103106
@@ -124,6 +127,9 @@ OPAL_VAR_SCOPE_PUSH([prrte_setup_internal_happy prrte_setup_external_happy targe
124127 AC_SUBST ( OMPI_SCHIZO_OMPI_RST_CONTENT_DIR )
125128 AM_CONDITIONAL(OMPI_HAVE_PRRTE_RST, [ test $OMPI_HAVE_PRRTE_RST -eq 1] )
126129
130+ AC_DEFINE_UNQUOTED ( [ OMPI_HAVE_PRTE_LAUNCH] , $OMPI_HAVE_PRTE_LAUNCH ,
131+ [ Whether prte_launch support available] )
132+
127133 OPAL_SUMMARY_ADD([ Miscellaneous] , [ PRRTE] , [ ] , [ $opal_prrte_mode] )
128134
129135 OPAL_VAR_SCOPE_POP
@@ -197,6 +203,9 @@ AC_DEFUN([_OMPI_SETUP_PRRTE_INTERNAL], [
197203 opal_prrte_CPPFLAGS_save="${CPPFLAGS}"
198204 OPAL_FLAGS_APPEND_UNIQ([ CPPFLAGS] , [ ${opal_pmix_CPPFLAGS}] )
199205
206+ AC_DEFINE_UNQUOTED ( [ OMPI_HAVE_PRTE_LAUNCH] , [ 1] ,
207+ [ prte_launch support available in ompi (aka internal) prrte] )
208+
200209 AC_MSG_CHECKING ( [ if PMIx version is 4.0.0 or greater] )
201210 AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <pmix_version.h>] ] ,
202211 [ [
@@ -299,6 +308,11 @@ AC_DEFUN([_OMPI_SETUP_PRRTE_EXTERNAL], [
299308 AS_IF ( [ test "${ompi_setup_prrte_cv_version_happy}" = "no"] ,
300309 [ setup_prrte_external_happy="no"] ) ] )
301310
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+
302316 CPPFLAGS="$opal_prrte_CPPFLAGS_save"
303317
304318 # If an external build and the user told us where to find PRRTE,
0 commit comments