... | @@ -974,6 +974,57 @@ Tue Apr 14 14:24:59 2020 |
... | @@ -974,6 +974,57 @@ Tue Apr 14 14:24:59 2020 |
|
+-----------------------------------------------------------------------------+
|
|
+-----------------------------------------------------------------------------+
|
|
```
|
|
```
|
|
|
|
|
|
|
|
The same, but now we make a reservation for 3 GPU's:
|
|
|
|
|
|
|
|
```
|
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
#SBATCH --partition=gpu
|
|
|
|
#SBATCH --gres=gpu:3
|
|
|
|
#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
|
|
|
|
```
|
|
|
|
|
|
|
|
cat slurm-206045.out
|
|
|
|
|
|
|
|
```
|
|
|
|
res-hpc-gpu01.researchlumc.nl
|
|
|
|
Cuda devices: 0,1,2
|
|
|
|
Tue Apr 14 14:26:22 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% 31C P0 61W / 250W | 0MiB / 12196MiB | 0% Default |
|
|
|
|
+-------------------------------+----------------------+----------------------+
|
|
|
|
| 1 TITAN Xp Off | 00000000:AF:00.0 Off | N/A |
|
|
|
|
| 18% 29C P0 60W / 250W | 0MiB / 12196MiB | 0% Default |
|
|
|
|
+-------------------------------+----------------------+----------------------+
|
|
|
|
| 2 TITAN Xp Off | 00000000:D8:00.0 Off | N/A |
|
|
|
|
| 18% 30C P0 61W / 250W | 0MiB / 12196MiB | 0% Default |
|
|
|
|
+-------------------------------+----------------------+----------------------+
|
|
|
|
|
|
|
|
+-----------------------------------------------------------------------------+
|
|
|
|
| Processes: GPU Memory |
|
|
|
|
| GPU PID Type Process name Usage |
|
|
|
|
|=============================================================================|
|
|
|
|
| No running processes found |
|
|
|
|
+-----------------------------------------------------------------------------+
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Slurm Environment Variables
|
|
### Slurm Environment Variables
|
|
|
|
|
|
Available environment variables include:
|
|
Available environment variables include:
|
... | | ... | |