Hi Chris,
You mentioned “But trials using this do not seem to be fruitful so far.” . . why?
In our job_submit.lua there is:
if job_desc.shared == 0 then
slurm.user_msg("exclusive access is not permitted with GPU jobs.")
slurm.user_msg("Remove '--exclusive' from your job submission script")
return ESLURM_NOT_SUPPORTED
end
and testing:
$ srun --exclusive --time 00:10:00 --gres gpu:1 --pty /bin/bash -i
srun: error: exclusive access is not permitted with GPU jobs.
srun: error: Remove '--exclusive' from your job submission script
srun: error: Unable to allocate resources: Requested operation is presently disabled
In slurm.h the job_descriptor struct has:
uint16_t shared; /* 2 if the job can only share nodes with other
* jobs owned by that user,
* 1 if job can share nodes with other jobs,
* 0 if job needs exclusive access to the node,
* or NO_VAL to accept the system default.
* SHARED_FORCE to eliminate user control. */
If there’s a case where using “.shared” isn’t working please let us know.
-Greg
For later reference, [1] should be the (current) authoritative source on data types for the job_desc values: some strings, some numbers, some booleans.
From:
slurm-users <slurm-use...@lists.schedmd.com> on behalf of Christopher Benjamin Coffey <Chris....@nau.edu>
Date: Tuesday, February 22, 2022 at 11:02 AM
To: Slurm User Community List <slurm...@lists.schedmd.com>
Subject: Re: [slurm-users] Can job submit plugin detect "--exclusive" ?
External Email Warning
This email originated from outside the university. Please use caution when opening attachments, clicking links, or responding to requests.
________________________________