... | ... | @@ -1148,7 +1148,7 @@ First download and compile the samples from NVidia: [Cuda samples](https://githu |
|
|
|
|
|
```
|
|
|
module purge
|
|
|
module add library/cuda/10.1/gcc.8.3.1
|
|
|
module add library/cuda/11.2/gcc.8.3.1
|
|
|
|
|
|
cd
|
|
|
git clone https://github.com/NVIDIA/cuda-samples.git
|
... | ... | @@ -1169,7 +1169,7 @@ cat gpu-test.slurm |
|
|
#SBATCH --time=3:00
|
|
|
|
|
|
module purge
|
|
|
module add library/cuda/10.2/gcc.8.3.1
|
|
|
module add library/cuda/11.2/gcc.8.3.1
|
|
|
|
|
|
hostname
|
|
|
echo "Cuda devices: $CUDA_VISIBLE_DEVICES"
|
... | ... | @@ -1181,10 +1181,10 @@ While running, ssh to the node (in this case res-hpc-gpu01) and run the command |
|
|
This will show that the "UnifiedMemoryPerf" program is running on a GPU.
|
|
|
|
|
|
```
|
|
|
[user@res-hpc-gpu01 GPU]$ nvidia-smi
|
|
|
Tue Apr 14 16:06:06 2020
|
|
|
[user@res-hpc-gpu01 GPU]$ nvidia-smi
|
|
|
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 |
|
|
|
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|
... | ... | @@ -1198,12 +1198,13 @@ Tue Apr 14 16:06:06 2020 |
|
|
| 2 TITAN Xp Off | 00000000:D8:00.0 Off | N/A |
|
|
|
| 18% 31C P0 61W / 250W | 0MiB / 12196MiB | 0% Default |
|
|
|
+-------------------------------+----------------------+----------------------+
|
|
|
|
|
|
|
|
|
+-----------------------------------------------------------------------------+
|
|
|
| Processes: GPU Memory |
|
|
|
| GPU PID Type Process name Usage |
|
|
|
| Processes: |
|
|
|
| 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 |
|
|
|
+-----------------------------------------------------------------------------+
|
|
|
```
|
|
|
|
... | ... | |