Requesting Either Or in GRES option


I was wondering if there is an easy way to have an “either this or that” gres requirement in the sbatch submission.
For example, if I am ambivolent to whether I get a single titan card or RTX card, but don’t want a Pascal card, is it possible ot make this request?
I have tried various logical combinations, but none seem to function.


For now I will use --gres=gpu:1 and specify the nodes, but it would be great to know if there is an easier catch all way!


Dear @John.Raine,

I read the doc and it doesn’t seems it’s possible. As as workaround, I’ve added the following “Feature” to the gpu nodes:


You can then submit your job as usual, specifying the gres with only the number of gpu and select the compute nodes you want to select like this:

#SBATCH --gres=gpu:1

Let us know if this works for you as I didn’t tested it:)

1 Like

Hi there,

FWIW, the above seems redundant to me, given that for each GPU type we already have the corresponding COMPUTE_CAPABILITY feature (cf. ), thus the selection would be:


Thx, bye,