- Allow changing ALPS run command
- Fix misnomer This commit was SVN r23601.
Этот коммит содержится в:
родитель
e6f0422f7c
Коммит
fc4cb0c0c1
@ -31,6 +31,7 @@ struct orte_plm_alps_component_t {
|
|||||||
int priority;
|
int priority;
|
||||||
int debug;
|
int debug;
|
||||||
bool timing;
|
bool timing;
|
||||||
|
char *aprun_cmd;
|
||||||
char *custom_args;
|
char *custom_args;
|
||||||
};
|
};
|
||||||
typedef struct orte_plm_alps_component_t orte_plm_alps_component_t;
|
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_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",
|
mca_base_param_reg_string(comp, "args",
|
||||||
"Custom arguments to srun",
|
"Custom arguments to aprun",
|
||||||
false, false, NULL,
|
false, false, NULL,
|
||||||
&mca_plm_alps_component.custom_args);
|
&mca_plm_alps_component.custom_args);
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ static int plm_alps_launch_job(orte_job_t *jdata)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* add the aprun command */
|
/* 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 */
|
/* Append user defined arguments to aprun */
|
||||||
if ( NULL != mca_plm_alps_component.custom_args ) {
|
if ( NULL != mca_plm_alps_component.custom_args ) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user