Skip to content

Commit 90e020b

Browse files
committed
prefix prte_launch_agent cmd if defined
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 9794e12 commit 90e020b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/runtime/prte_mca_params.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* and Technology (RIST). All rights reserved.
1919
* Copyright (c) 2017 IBM Corporation. All rights reserved.
2020
* Copyright (c) 2021-2025 Nanook Consulting All rights reserved.
21+
* Copyright (c) 2025 Triad National Security, LLC. All rights
22+
* reserved.
2123
* $COPYRIGHT$
2224
*
2325
* Additional copyrights may follow
@@ -416,7 +418,14 @@ int prte_register_params(void)
416418
&prte_do_not_resolve);
417419

418420
/* allow specification of the launch agent */
421+
#ifdef PRTE_BINARY_PREFIX
422+
char cmd[PRTE_PATH_MAX];
423+
int nbytes = snprintf(cmd, PRTE_PATH_MAX, "%s%s", PRTE_BINARY_PREFIX, "prted");
424+
assert(PRTE_PATH_MAX >= nbytes);
425+
prte_launch_agent = strdup(cmd);
426+
#else
419427
prte_launch_agent = "prted";
428+
#endif
420429
(void) pmix_mca_base_var_register("prte", "prte", NULL, "launch_agent",
421430
"Executable for DVM daemons on remote nodes [default: prted]",
422431
PMIX_MCA_BASE_VAR_TYPE_STRING,

0 commit comments

Comments
 (0)