Skip to content

Commit 707cea5

Browse files
rhc54hppritcha
authored andcommitted
Process deprecated "stop" CLI
Although we have deprecated the --stop-in-init, --stop-in-app, and --stop-on-exec CLI options, we still need to convert them to their --runtime-options NNN versions so they are respected. Signed-off-by: Ralph Castain <[email protected]> (cherry picked from commit a809f3e)
1 parent dc5c80c commit 707cea5

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

src/mca/schizo/ompi/schizo_ompi.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,30 @@ static int convert_deprecated_cli(pmix_cli_result_t *results,
880880
free(p2);
881881
PMIX_CLI_REMOVE_DEPRECATED(results, opt);
882882
}
883+
/* --stop-in-init -> --runtime-options stop-in-init */
884+
else if (0 == strcmp(option, PRTE_CLI_STOP_IN_INIT)) {
885+
rc = prte_schizo_base_add_directive(results, option,
886+
PRTE_CLI_RTOS, PRTE_CLI_STOP_IN_INIT,
887+
warn);
888+
PMIX_CLI_REMOVE_DEPRECATED(results, opt);
889+
}
890+
891+
/* --stop-in-app -> --runtime-options stop-in-app */
892+
else if (0 == strcmp(option, PRTE_CLI_STOP_IN_APP)) {
893+
rc = prte_schizo_base_add_directive(results, option,
894+
PRTE_CLI_RTOS, PRTE_CLI_STOP_IN_APP,
895+
warn);
896+
PMIX_CLI_REMOVE_DEPRECATED(results, opt);
897+
}
898+
899+
/* --stop-on-exec -> --runtime-options stop-on-exec */
900+
else if (0 == strcmp(option, PRTE_CLI_STOP_ON_EXEC)) {
901+
rc = prte_schizo_base_add_directive(results, option,
902+
PRTE_CLI_RTOS, PRTE_CLI_STOP_ON_EXEC,
903+
warn);
904+
PMIX_CLI_REMOVE_DEPRECATED(results, opt);
905+
}
906+
883907
/* --display-map -> --display map */
884908
else if (0 == strcmp(option, "display-map")) {
885909
rc = prte_schizo_base_add_directive(results, option,

src/mca/schizo/prte/schizo_prte.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,30 @@ static int convert_deprecated_cli(pmix_cli_result_t *results,
805805
PMIX_CLI_REMOVE_DEPRECATED(results, opt);
806806
}
807807

808+
/* --stop-in-init -> --runtime-options stop-in-init */
809+
else if (0 == strcmp(option, PRTE_CLI_STOP_IN_INIT)) {
810+
rc = prte_schizo_base_add_directive(results, option,
811+
PRTE_CLI_RTOS, PRTE_CLI_STOP_IN_INIT,
812+
warn);
813+
PMIX_CLI_REMOVE_DEPRECATED(results, opt);
814+
}
815+
816+
/* --stop-in-app -> --runtime-options stop-in-app */
817+
else if (0 == strcmp(option, PRTE_CLI_STOP_IN_APP)) {
818+
rc = prte_schizo_base_add_directive(results, option,
819+
PRTE_CLI_RTOS, PRTE_CLI_STOP_IN_APP,
820+
warn);
821+
PMIX_CLI_REMOVE_DEPRECATED(results, opt);
822+
}
823+
824+
/* --stop-on-exec -> --runtime-options stop-on-exec */
825+
else if (0 == strcmp(option, PRTE_CLI_STOP_ON_EXEC)) {
826+
rc = prte_schizo_base_add_directive(results, option,
827+
PRTE_CLI_RTOS, PRTE_CLI_STOP_ON_EXEC,
828+
warn);
829+
PMIX_CLI_REMOVE_DEPRECATED(results, opt);
830+
}
831+
808832
/* --display-map -> --display map */
809833
else if (0 == strcmp(option, "display-map")) {
810834
rc = prte_schizo_base_add_directive(results, option,

0 commit comments

Comments
 (0)