Changes
Page history
Update home
authored
Apr 14, 2020
by
van Vliet
Show whitespace changes
Inline
Side-by-side
home.md
View page @
0245e7fc
...
...
@@ -926,6 +926,50 @@ Normally you don't have to specify the type of GPU. But if there are different k
| res-hpc-lkeb05 | LKEBgpu | Gres=gpu:RTX6000:3 |
| res-hpc-gpu[01-02] | gpu | Gres=gpu:TitanXp:3 |
#### Simple GPU example
```
cat test-gpu.slurm
#!/bin/bash
#
#SBATCH --partition=gpu
#SBATCH --gres=gpu:1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --time=3:00
module purge
module add library/cuda/10.1/gcc.8.3.1
hostname
echo "Cuda devices: $CUDA_VISIBLE_DEVICES"
nvidia-smi
sleep 10
```
Output:
```
cat slurm-206044.out
res-hpc-gpu01.researchlumc.nl
Cuda devices: 0
Tue Apr 14 14:24:59 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 TITAN Xp Off | 00000000:3B:00.0 Off | N/A |
| 17% 30C P0 60W / 250W | 0MiB / 12196MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
```
### Slurm Environment Variables
Available environment variables include:
...
...
...
...