Skip to content

Commit

Permalink
Push launch-agent CLI into the env
Browse files Browse the repository at this point in the history
Push any provided launch-agent CLI into the env as an MCA
param for pickup by the plm framework.

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit c274b7b)
  • Loading branch information
rhc54 committed Sep 30, 2022
1 parent bb07914 commit 6b0c9c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tools/prte/prte.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@ int main(int argc, char *argv[])
prte_pmix_server_globals.report_uri = strdup(opt->values[0]);
}

/* if we were given a launch agent, set the MCA param for it */
opt = pmix_cmd_line_get_param(&results, PRTE_CLI_LAUNCH_AGENT);
if (NULL != opt) {
setenv("PRTE_MCA_prte_launch_agent", opt->values[0], true); // cmd line overrides all
}

/* if we are supporting a singleton, push its ID into the environ
* so it can get picked up and registered by server init */
opt = pmix_cmd_line_get_param(&results, PRTE_CLI_SINGLETON);
Expand Down

0 comments on commit 6b0c9c9

Please sign in to comment.