1
1

- Allow changing ALPS run command

- Fix misnomer

This commit was SVN r23601.
Этот коммит содержится в:
Rainer Keller 2010-08-12 14:41:35 +00:00
родитель e6f0422f7c
Коммит fc4cb0c0c1
3 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -31,6 +31,7 @@ struct orte_plm_alps_component_t {
int priority;
int debug;
bool timing;
char *aprun_cmd;
char *custom_args;
};
typedef struct orte_plm_alps_component_t orte_plm_alps_component_t;

Просмотреть файл

@ -103,8 +103,13 @@ static int plm_alps_open(void)
mca_plm_alps_component.timing = orte_timing;
mca_base_param_reg_string(comp, "aprun",
"Command to run instead of aprun",
false, false, "aprun",
&mca_plm_alps_component.aprun_cmd);
mca_base_param_reg_string(comp, "args",
"Custom arguments to srun",
"Custom arguments to aprun",
false, false, NULL,
&mca_plm_alps_component.custom_args);

Просмотреть файл

@ -211,7 +211,7 @@ static int plm_alps_launch_job(orte_job_t *jdata)
*/
/* add the aprun command */
opal_argv_append(&argc, &argv, "aprun");
opal_argv_append(&argc, &argv, mca_plm_alps_component.aprun_cmd);
/* Append user defined arguments to aprun */
if ( NULL != mca_plm_alps_component.custom_args ) {