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