Partially revert 21513. Beware of the exception on the orte_launch_agent which
is treated apart in orte_plm_base_setup_orted_cmd. This commit was SVN r21517.
Этот коммит содержится в:
родитель
2e98ba3fd0
Коммит
c0750343b5
@ -1144,20 +1144,15 @@ int orte_plm_base_orted_append_basic_args(int *argc, char ***argv,
|
|||||||
if (ORTE_PROC_IS_HNP || ORTE_PROC_IS_DAEMON) {
|
if (ORTE_PROC_IS_HNP || ORTE_PROC_IS_DAEMON) {
|
||||||
cnt = opal_argv_count(orted_cmd_line);
|
cnt = opal_argv_count(orted_cmd_line);
|
||||||
for (i=0; i < cnt; i+=3) {
|
for (i=0; i < cnt; i+=3) {
|
||||||
/* in the rsh environment, we can append multi-word arguments
|
/* if the specified option is more than one word, we don't
|
||||||
* by enclosing them in quotes. Check for any multi-word
|
* have a generic way of passing it as some environments ignore
|
||||||
* mca params passed to mpirun and include them
|
* any quotes we add, while others don't - so we ignore any
|
||||||
*/
|
* such options. In most cases, this won't be a problem as
|
||||||
if (NULL != strchr(orted_cmd_line[i+2], ' ')) {
|
* they typically only apply to things of interest to the HNP.
|
||||||
char* param;
|
* Individual environments can add these back into the cmd line
|
||||||
|
* as they know if it can be supported
|
||||||
/* must add quotes around it */
|
*/
|
||||||
asprintf(¶m, "\"%s\"", orted_cmd_line[i+2]);
|
if (NULL != strchr(orted_cmd_line[i+2], ' ')) {
|
||||||
/* now pass it along */
|
|
||||||
opal_argv_append(argc, argv, orted_cmd_line[i]);
|
|
||||||
opal_argv_append(argc, argv, orted_cmd_line[i+1]);
|
|
||||||
opal_argv_append(argc, argv, param);
|
|
||||||
free(param);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* The daemon will attempt to open the PLM on the remote
|
/* The daemon will attempt to open the PLM on the remote
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user