updated cuda example to 11.2 authored by van Vliet's avatar van Vliet
...@@ -1148,7 +1148,7 @@ First download and compile the samples from NVidia: [Cuda samples](https://githu ...@@ -1148,7 +1148,7 @@ First download and compile the samples from NVidia: [Cuda samples](https://githu
``` ```
module purge module purge
module add library/cuda/10.1/gcc.8.3.1 module add library/cuda/11.2/gcc.8.3.1
cd cd
git clone https://github.com/NVIDIA/cuda-samples.git git clone https://github.com/NVIDIA/cuda-samples.git
...@@ -1169,7 +1169,7 @@ cat gpu-test.slurm ...@@ -1169,7 +1169,7 @@ cat gpu-test.slurm
#SBATCH --time=3:00 #SBATCH --time=3:00
module purge module purge
module add library/cuda/10.2/gcc.8.3.1 module add library/cuda/11.2/gcc.8.3.1
hostname hostname
echo "Cuda devices: $CUDA_VISIBLE_DEVICES" echo "Cuda devices: $CUDA_VISIBLE_DEVICES"
...@@ -1182,9 +1182,9 @@ This will show that the "UnifiedMemoryPerf" program is running on a GPU. ...@@ -1182,9 +1182,9 @@ This will show that the "UnifiedMemoryPerf" program is running on a GPU.
``` ```
[user@res-hpc-gpu01 GPU]$ nvidia-smi [user@res-hpc-gpu01 GPU]$ nvidia-smi
Tue Apr 14 16:06:06 2020 Mon Dec 21 11:29:55 2020
+-----------------------------------------------------------------------------+ +-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 | | NVIDIA-SMI 460.27.04 Driver Version: 460.27.04 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+ |-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
...@@ -1200,10 +1200,11 @@ Tue Apr 14 16:06:06 2020 ...@@ -1200,10 +1200,11 @@ Tue Apr 14 16:06:06 2020
+-------------------------------+----------------------+----------------------+ +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ +-----------------------------------------------------------------------------+
| Processes: GPU Memory | | Processes: |
| GPU PID Type Process name Usage | | GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================| |=============================================================================|
| 1 29726 C ...les/UnifiedMemoryPerf/UnifiedMemoryPerf 145MiB | | 0 N/A N/A 28550 C ...oryPerf/UnifiedMemoryPerf 145MiB |
+-----------------------------------------------------------------------------+ +-----------------------------------------------------------------------------+
``` ```
... ...
......