Once again, bloody SLURM changes the envars and breaks things. Try and track their changes so we get a correct allocation.
This commit was SVN r27302.
Этот коммит содержится в:
родитель
a08c23dfdc
Коммит
e8ecd67d53
@ -88,6 +88,9 @@ static int orte_ras_slurm_allocate(opal_list_t *nodes)
|
|||||||
}
|
}
|
||||||
regexp = strdup(slurm_node_str);
|
regexp = strdup(slurm_node_str);
|
||||||
|
|
||||||
|
tasks_per_node = getenv("SLURM_JOB_CPUS_PER_NODE");
|
||||||
|
if (NULL == tasks_per_node) {
|
||||||
|
/* try an older variation */
|
||||||
tasks_per_node = getenv("SLURM_TASKS_PER_NODE");
|
tasks_per_node = getenv("SLURM_TASKS_PER_NODE");
|
||||||
if (NULL == tasks_per_node) {
|
if (NULL == tasks_per_node) {
|
||||||
/* couldn't find any version - abort */
|
/* couldn't find any version - abort */
|
||||||
@ -95,6 +98,7 @@ static int orte_ras_slurm_allocate(opal_list_t *nodes)
|
|||||||
"SLURM_TASKS_PER_NODE");
|
"SLURM_TASKS_PER_NODE");
|
||||||
return ORTE_ERR_NOT_FOUND;
|
return ORTE_ERR_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
node_tasks = strdup(tasks_per_node);
|
node_tasks = strdup(tasks_per_node);
|
||||||
|
|
||||||
if(NULL == regexp || NULL == node_tasks) {
|
if(NULL == regexp || NULL == node_tasks) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user