phlippe / uvadlc_notebooks

Repository of Jupyter notebook tutorials for teaching the Deep Learning Course at the University of Amsterdam (MSc AI), Fall 2023
https://uvadlc-notebooks.readthedocs.io/en/latest/
MIT License
2.59k stars 590 forks source link

Example job script in Guide 1 is depricated on Snellius #104

Closed ddgoede closed 1 year ago

ddgoede commented 1 year ago

In Guide 1: Working with the Lisa cluster, the job script is depricated in how it asks for a GPU on Snellius.

The line #SBATCH --gres=gpu:1 only works for interactive nodes on Snellius. In a normal job script, one should instead use #SBATCH --gpus=1. Otherwise, CUDA will throw a RuntimeError saying that no GPUs are available.

I know that the guide is originally intended for the Lisa cluster, but it might be something to keep in mind in case you are planning to update it to Snellius at some point.

phlippe commented 1 year ago

Hey Danilo, thanks for pointing this out! For now, I have added a note on it in the Lisa guide (4d980d9ae412c62e3a8b6ba600fd83d283cf8afc). I don't know what we will use for the DL1 course next year (e.g. if there will be a Lisa 2.0 cluster or only Snellius), so I'll try to update the guide fully once that is decided.