You have defined both of your partitions with “Default=YES”, but Slurm can have only one default partition. You can see from * on the compute partition in your sinfo output that Slurm selected that one as the default. When you use srun or sbatch it will only look at the default partition unless you use -p
To avoid confusion you should remove the Default=YES from one of the partitions and know that you will need to explicitly ask for the other (non-default) partition whenever you want to use it.
Mike
From: slurm-users <slurm-use...@lists.schedmd.com> on behalf of Durai Arasan <arasan...@gmail.com>
Reply-To: Slurm User Community List <slurm...@lists.schedmd.com>
Date: Tuesday, May 12, 2020 at 08:49
To: "slurm...@lists.schedmd.com" <slurm...@lists.schedmd.com>
Cc: "benjamin...@uni-tuebingen.de" <benjamin...@uni-tuebingen.de>
Subject: [External] [slurm-users] slurm only looking in "default" partition during scheduling
CAUTION: This email originated from outside of the Colorado School of Mines organization. Do not click on links or open attachments unless you recognize the sender and know the content is safe.
You cannot have two default partitions.
The slurm.conf is picking up the last of the entries flagged as Default; because the compute partition has no partition specified it is being sent to the default partition, thus the first srun is being submitted to the compute partition, and that partition has only a node with no gpu GRES defined, thus the srun is correct to fail.
What is the output of the command
sinfo
The partition understood to be the default will be indicated with * after the partition name.