Update home authored by Villerius's avatar Villerius
......@@ -1033,6 +1033,8 @@ You can enable X11 forwarding with the "--x11" parameter, for example:
* srun -n1 --pty --x11 xclock
### Using GPU's
The SLURM scheduler will chose a free GPU for you, the Linux cgroups will make sure you will see only the GPU(s) that are chosen for you. This means the the variable CUDA_VISIBLE_DEVICES is not the right variable that denotes your GPU index.
The SLURM variable that will return the right GPU index number is SLURM_STEP_GPUS.
You can use a GPU with the **--gres** parameter, for example:
```
--partition=gpu
......
......