... | @@ -891,6 +891,24 @@ See the man page for the scontrol command. |
... | @@ -891,6 +891,24 @@ See the man page for the scontrol command. |
|
You can enable X11 forwarding with the "--x11" parameter, for example:
|
|
You can enable X11 forwarding with the "--x11" parameter, for example:
|
|
* srun -n1 --pty --x11 xclock
|
|
* srun -n1 --pty --x11 xclock
|
|
|
|
|
|
|
|
### Using GPU's
|
|
|
|
You can use a GPU with the **--gres** parameter, for example:
|
|
|
|
```
|
|
|
|
--partition=gpu
|
|
|
|
--gres=gpu:1
|
|
|
|
--ntasks=1
|
|
|
|
--cpus-per-task=1
|
|
|
|
```
|
|
|
|
Syntax:
|
|
|
|
* --gres=gpu:[type gpu]:[number of gpus]
|
|
|
|
|
|
|
|
Normally you don't have to specify the type of GPU. But if in the future there are different kind of GPUs in a single machine or you want to run on a certain type of GPU you have to specify on which GPU you want to run, for example:
|
|
|
|
|
|
|
|
```
|
|
|
|
--partition=gpu
|
|
|
|
--gres=gpu:1080Ti:1
|
|
|
|
```
|
|
|
|
|
|
### Slurm Environment Variables
|
|
### Slurm Environment Variables
|
|
|
|
|
|
Available environment variables include:
|
|
Available environment variables include:
|
... | | ... | |