There are a number of options you can request with
sbatch that indicate which nodes or resources you would like to use. For example:
nodelist = list of nodes where to run e.g.
nodefile = like
nodelist but you specify the file with a list of nodes e.g.
constraint = list of features that need to be present on the node
--constraint=pascal - and this can be a boolean expression like
For example, your command might be:
srun -N 1 -n 1 -c 2 --nodelist=mynodename1,mynodename2 --constraint=pascal myscript.sh