Disqualify slurm module even if slurm support was configured into the build if we don't have an allocation and haven't enabled dynamic allocations
This commit was SVN r27995.
Этот коммит содержится в:
родитель
166f512924
Коммит
53e0ed71b0
@ -111,9 +111,15 @@ static int orte_ras_slurm_component_query(mca_base_module_t **module, int *prior
|
||||
{
|
||||
/* if I built, then slurm support is available. If
|
||||
* I am not in a Slurm allocation, and dynamic alloc
|
||||
* is not enabled, then I'll deal with that by returning
|
||||
* an appropriate status code upon allocation
|
||||
* is not enabled, then disqualify myself
|
||||
*/
|
||||
if (NULL == getenv("SLURM_JOBID") &&
|
||||
!mca_ras_slurm_component.dyn_alloc_enabled) {
|
||||
/* disqualify ourselves */
|
||||
*priority = 0;
|
||||
*module = NULL;
|
||||
return ORTE_ERROR;
|
||||
}
|
||||
|
||||
OPAL_OUTPUT_VERBOSE((2, orte_ras_base.ras_output,
|
||||
"%s ras:slurm: available for selection",
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user