Merge pull request #3686 from rhc54/topic/slurm
Print a better error message when srun isn't found in the path.
Этот коммит содержится в:
Коммит
2ffaf5ea9f
@ -2151,11 +2151,13 @@ int orte_plm_base_setup_virtual_machine(orte_job_t *jdata)
|
||||
}
|
||||
|
||||
/* ensure we are not on the list */
|
||||
item = opal_list_get_first(&nodes);
|
||||
node = (orte_node_t*)item;
|
||||
if (0 == node->index) {
|
||||
opal_list_remove_item(&nodes, item);
|
||||
OBJ_RELEASE(item);
|
||||
if (0 < opal_list_get_size(&nodes)) {
|
||||
item = opal_list_get_first(&nodes);
|
||||
node = (orte_node_t*)item;
|
||||
if (0 == node->index) {
|
||||
opal_list_remove_item(&nodes, item);
|
||||
OBJ_RELEASE(item);
|
||||
}
|
||||
}
|
||||
|
||||
/* if we didn't get anything, then we are the only node in the
|
||||
|
@ -49,3 +49,7 @@ are running.
|
||||
|
||||
Please consult with your system administrator about obtaining
|
||||
such support.
|
||||
[no-srun]
|
||||
The SLURM process starter for OpenMPI was unable to locate a
|
||||
usable "srun" command in its path. Please check your path
|
||||
and try again.
|
||||
|
@ -587,7 +587,8 @@ static int plm_slurm_start_proc(int argc, char **argv, char **env,
|
||||
orte_proc_t *dummy;
|
||||
|
||||
if (NULL == exec_argv) {
|
||||
return ORTE_ERR_NOT_FOUND;
|
||||
orte_show_help("help-plm-slurm.txt", "no-srun", true);
|
||||
return ORTE_ERR_SILENT;
|
||||
}
|
||||
|
||||
srun_pid = fork();
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user