interactive srun with gpu unsupported by configured SelectType plugin

1,892 views
Skip to first unread message

tk...@ucdavis.edu

unread,
Feb 8, 2021, 4:59:42 PM2/8/21
to google-cloud-slurm-discuss
Hi,
I used a standard slurm-gcp setup with a GPU, I can run GPU based sbatch calls (#SBATCH --gres=gpu:1) and nvidia-smi runs fine, but I am unable to use an interactive session with a GPU. Is there any remedy to that error below?

[cluster-login0]$ srun  --gpus 1 --pty bash
srun: error: Unable to allocate resources: Requested GRES option unsupported by configured SelectType plugin

[cluster-login0]$ srun   --pty bash
[cluster-compute-0-0]$ 

Thanks
Tobias

Alex Chekholko

unread,
Feb 8, 2021, 5:04:07 PM2/8/21
to tk...@ucdavis.edu, google-cloud-slurm-discuss
Hi,

Which gres value do you request?  You need to add a "--gres..." with something that matches a value from your SLURM gres.conf

Regards,
Alex

--
You received this message because you are subscribed to the Google Groups "google-cloud-slurm-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-slurm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-slurm-discuss/b644f8c5-b796-4b89-af5e-c653caf6ccdfn%40googlegroups.com.

tk...@ucdavis.edu

unread,
Feb 8, 2021, 5:19:12 PM2/8/21
to google-cloud-slurm-discuss
Hi Alex,
right, I think it was because of the missing gres option, also
adding --gpus will lead to the same issue. Simply the gres option alone
will solve the issue and allow for an interactive GPU run.

[cluster-login0 ~]$ srun --pty  --gres=gpu:1 bash
[cluster-compute-0-0 ~]$ nvidia-smi
   
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
...snip

Thanks alot!
Tobias
Reply all
Reply to author
Forward
0 new messages