Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
pandoc:introduction-to-vsc:09_special_hardware:accelerators [2021/05/18 13:50] – [Components on VSC-3+] goldenberg | pandoc:introduction-to-vsc:09_special_hardware:accelerators [2023/03/14 13:06] – [Working on GPU nodes Interactively] goldenberg | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== GPUs available & how to use it ====== |
* Article written by Siegfried Höfinger (VSC Team) < | * Article written by Siegfried Höfinger (VSC Team) < | ||
Line 27: | Line 27: | ||
< | < | ||
</ | </ | ||
- | ====== Components on VSC-3+ ====== | + | ====== Components |
+ | ===== GPUs on VSC-3 - now decommissioned | ||
^Model | ^Model | ||
Line 36: | Line 38: | ||
|< | |< | ||
|{{.: | |{{.: | ||
- | |< | ||
- | |{{.: | ||
- | |4352|1.35 | ||
+ | ===== GPUs on VSC-5 ===== | ||
+ | |||
+ | ^Model | ||
+ | |< | ||
+ | |{{: | ||
+ | |< | ||
+ | |{{ : | ||
+ | |< | ||
+ | |{{ : | ||
Line 46: | Line 54: | ||
< | < | ||
</ | </ | ||
- | ====== Working on GPU nodes ====== | + | ====== Working on GPU nodes Interactively |
**Interactive mode** | **Interactive mode** | ||
< | < | ||
- | 1. VSC-3 > salloc -N 1 -p gpu_gtx1080single | + | 1. VSC-5 > salloc -N 1 -p zen2_0256_a40x2 |
- | 2. VSC-3 > squeue -u $USER | + | 2. VSC-5 > squeue -u $USER |
- | 3. VSC-3 > srun -n 1 hostname | + | 3. VSC-5 > srun -n 1 hostname |
- | 4. VSC-3 > ssh n372-012 (...or whatever else node had been assigned) | + | 4. VSC-5 > ssh n3066-012 (...or whatever else node had been assigned) |
- | 5. VSC-3 > module load cuda/ | + | 5. VSC-5 > module load cuda/ |
cd ~/ | cd ~/ | ||
nvcc ./ | nvcc ./ | ||
Line 68: | Line 76: | ||
./a.out | ./a.out | ||
- | 6. VSC-3 > nvidia-smi | + | 6. VSC-5 > nvidia-smi |
- | 7. VSC-3 > / | + | 7. VSC-5 > / |
</ | </ | ||
< | < | ||
< | < | ||
</ | </ | ||
- | ====== Working on GPU nodes cont. ====== | + | ====== Working on GPU using SLURM ====== |
**SLURM submission** gpu_test.scrpt | **SLURM submission** gpu_test.scrpt | ||
Line 84: | Line 92: | ||
# usage: sbatch ./ | # usage: sbatch ./ | ||
# | # | ||
- | #SBATCH -J gtx1080 | + | #SBATCH -J A40 |
#SBATCH -N 1 | #SBATCH -N 1 | ||
- | #SBATCH --partition | + | #SBATCH --partition |
- | #SBATCH --qos gpu_gtx1080single | + | #SBATCH --qos zen2_0256_a40x2 |
module purge | module purge |