Skip to content

Commit

Permalink
Correctly translate the plm_rsh MCA params
Browse files Browse the repository at this point in the history
Need to convert to plm_ssh

Signed-off-by: Ralph Castain <[email protected]>
  • Loading branch information
rhc54 committed Nov 17, 2023
1 parent 361592b commit c5db39a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mca/schizo/base/schizo_base_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ int prte_schizo_base_parse_prte(int argc, int start, char **argv, char ***target
pmix_asprintf(&param, "prtedl_%s", &p1[strlen("dl_")]);
free(p1);
p1 = param;
} else if (0 == strncasecmp(p1, "plm_rsh", strlen("plm_rsh"))) {
pmix_asprintf(&param, "plm_ssh_%s", &p1[strlen("plm_rsh_")]);
free(p1);
p1 = param;
}
if (NULL == target) {
/* push it into our environment */
Expand Down
8 changes: 8 additions & 0 deletions src/mca/schizo/ompi/schizo_ompi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1807,6 +1807,14 @@ static bool check_prte_overlap(char *var, char *value)
setenv(tmp, value, false);
free(tmp);
return true;
} else if (0 == strncmp(var, "plm_rsh_", strlen("plm_rsh_"))) {
// need to convert rsh to ssh
pmix_asprintf(&tmp, "PRTE_MCA_plm_ssh_%s", &var[strlen("plm_rsh_")]);
// set it, but don't overwrite if they already
// have a value in our environment
setenv(tmp, value, false);
free(tmp);
return true;
} else if (0 == strncmp(var, "orte_", strlen("orte_"))) {
// need to convert "orte" to "prte"
pmix_asprintf(&tmp, "PRTE_MCA_prte_%s", &var[strlen("orte_")]);
Expand Down

0 comments on commit c5db39a

Please sign in to comment.