From 98e36698c399fefc21271c310bd3b93158366e8f Mon Sep 17 00:00:00 2001 From: Uriel Chemouni Date: Thu, 13 Jun 2024 10:16:05 +0200 Subject: [PATCH 1/2] Update cuda.md, replace cuda 12.2 by 12.5 Cuda 12.2 is deprecated, and display nasty warning. the driver version 555 is currently 6 day old. the driver version 550 was built on top of cuda 12.4. --- content/cuda.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/content/cuda.md b/content/cuda.md index 856375c958..278e6ca2b1 100644 --- a/content/cuda.md +++ b/content/cuda.md @@ -30,7 +30,7 @@ The `nvidia-cuda-toolkit` package is [maintained by Ubuntu](https://packages.ubu The `nvidia-container-toolkit` package uses Docker containers to allow alternate versions of the CUDA libraries to be installed alongside the one included with the NVIDIA driver. You can see the different Docker images that are published by NVIDIA here: -This example installs a development enviroment with CUDA version 12.1. +This example installs a development enviroment with CUDA version 12.5. #### Install Software @@ -70,15 +70,15 @@ sudo systemctl restart docker Run this command to check the Docker configuration for CUDA: ```bash -docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.1.0-devel-ubuntu22.04 nvidia-smi +docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.5.0-devel-ubuntu22.04 nvidia-smi ``` The output displays the CUDA version supported by the container: ``` -Thu Mar 23 14:43:51 2023 +Thu Jun 13 14:43:51 2024 +-----------------------------------------------------------------------------+ -| NVIDIA-SMI 525.89.02 Driver Version: 525.89.02 CUDA Version: 12.1 | +| NVIDIA-SMI 555.42.02 Driver Version: 555.42.02 CUDA Version: 12.5 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | @@ -102,7 +102,7 @@ Thu Mar 23 14:43:51 2023 Start a shell within the container: ```bash -docker run -it --rm --runtime=nvidia --gpus all nvidia/cuda:12.1.0-devel-ubuntu22.04 bash +docker run -it --rm --runtime=nvidia --gpus all nvidia/cuda:12.5.0-devel-ubuntu22.04 bash ``` Commands can then be run with CUDA support: @@ -110,10 +110,10 @@ Commands can then be run with CUDA support: ```shell root@5397e7ea7f57:/# nvcc --version nvcc: NVIDIA (R) Cuda compiler driver -Copyright (c) 2005-2023 NVIDIA Corporation -Built on Tue_Feb__7_19:32:13_PST_2023 -Cuda compilation tools, release 12.1, V12.1.66 -Build cuda_12.1.r12.1/compiler.32415258_0 +Copyright (c) 2005-2024 NVIDIA Corporation +Built on Wed_Apr_17_19:19:55_PDT_2024 +Cuda compilation tools, release 12.5, V12.5.40 +Build cuda_12.5.r12.5/compiler.34177558_0 ``` The container can be viewed and managed using `docker ps` in another terminal or tab: @@ -121,7 +121,7 @@ The container can be viewed and managed using `docker ps` in another terminal or ```bash system76@pop-os:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -5397e7ea7f57 nvidia/cuda:12.1.0-devel-ubuntu22.04 "/opt/nvidia/nvidia_…" 2 minutes ago Up 2 minutes boring_tesla +5397e7ea7f57 nvidia/cuda:12.5.0-devel-ubuntu22.04 "/opt/nvidia/nvidia_…" 2 minutes ago Up 2 minutes boring_tesla ``` The container ID can be referenced to copy files into and out of the container: @@ -143,10 +143,10 @@ The binary (`c++11_cuda`) is built: ``` root@5397e7ea7f57:~/cuda-samples/Samples/0_Introduction/c++11_cuda# ls -l total 6108 --rw-rw-r-- 1 1000 1000 13679 Mar 24 16:45 Makefile +-rw-rw-r-- 1 1000 1000 13951 Mar 24 16:45 Makefile -rw-rw-r-- 1 1000 1000 2090 Mar 24 16:45 NsightEclipse.xml -rw-rw-r-- 1 1000 1000 3556 Mar 24 16:45 README.md --rwxr-xr-x 1 root root 1881448 Mar 24 16:48 c++11_cuda +-rwxr-xr-x 1 root root 2147784 Mar 24 16:48 c++11_cuda ... ``` From 2721cfd708feb92f1b33340139f68d7bf70689b0 Mon Sep 17 00:00:00 2001 From: Uriel Chemouni Date: Fri, 14 Jun 2024 10:08:17 +0200 Subject: [PATCH 2/2] replace cuda 12.5 by 12.4 --- content/cuda.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/content/cuda.md b/content/cuda.md index 278e6ca2b1..f73be74672 100644 --- a/content/cuda.md +++ b/content/cuda.md @@ -30,7 +30,7 @@ The `nvidia-cuda-toolkit` package is [maintained by Ubuntu](https://packages.ubu The `nvidia-container-toolkit` package uses Docker containers to allow alternate versions of the CUDA libraries to be installed alongside the one included with the NVIDIA driver. You can see the different Docker images that are published by NVIDIA here: -This example installs a development enviroment with CUDA version 12.5. +This example installs a development enviroment with CUDA version 12.4. #### Install Software @@ -70,7 +70,7 @@ sudo systemctl restart docker Run this command to check the Docker configuration for CUDA: ```bash -docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.5.0-devel-ubuntu22.04 nvidia-smi +docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.4.0-devel-ubuntu22.04 nvidia-smi ``` The output displays the CUDA version supported by the container: @@ -78,7 +78,7 @@ The output displays the CUDA version supported by the container: ``` Thu Jun 13 14:43:51 2024 +-----------------------------------------------------------------------------+ -| NVIDIA-SMI 555.42.02 Driver Version: 555.42.02 CUDA Version: 12.5 | +| NVIDIA-SMI 550.67. Driver Version: 550.67 CUDA Version: 12.4 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | @@ -102,7 +102,7 @@ Thu Jun 13 14:43:51 2024 Start a shell within the container: ```bash -docker run -it --rm --runtime=nvidia --gpus all nvidia/cuda:12.5.0-devel-ubuntu22.04 bash +docker run -it --rm --runtime=nvidia --gpus all nvidia/cuda:12.4.0-devel-ubuntu22.04 bash ``` Commands can then be run with CUDA support: @@ -111,9 +111,9 @@ Commands can then be run with CUDA support: root@5397e7ea7f57:/# nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2024 NVIDIA Corporation -Built on Wed_Apr_17_19:19:55_PDT_2024 -Cuda compilation tools, release 12.5, V12.5.40 -Build cuda_12.5.r12.5/compiler.34177558_0 +Built on Thu_Mar_28_02:18:24_PDT_2024 +Cuda compilation tools, release 12.4, V12.4.131 +Build cuda_12.4.r12.4/compiler.34097967_0 ``` The container can be viewed and managed using `docker ps` in another terminal or tab: @@ -121,7 +121,7 @@ The container can be viewed and managed using `docker ps` in another terminal or ```bash system76@pop-os:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -5397e7ea7f57 nvidia/cuda:12.5.0-devel-ubuntu22.04 "/opt/nvidia/nvidia_…" 2 minutes ago Up 2 minutes boring_tesla +5397e7ea7f57 nvidia/cuda:12.4.0-devel-ubuntu22.04 "/opt/nvidia/nvidia_…" 2 minutes ago Up 2 minutes boring_tesla ``` The container ID can be referenced to copy files into and out of the container: