Skip to content

Commit e809cc9

Browse files
Update cuda.md, replace cuda 12.2 with 12.4 (#1238)
* 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. * replace cuda 12.5 by 12.4 --------- Co-authored-by: thomas-zimmerman <[email protected]>
1 parent aa479d4 commit e809cc9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

content/cuda.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The `nvidia-cuda-toolkit` package is [maintained by Ubuntu](https://packages.ubu
3030

3131
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: <https://hub.docker.com/r/nvidia/cuda/>
3232

33-
This example installs a development enviroment with CUDA version 12.1.
33+
This example installs a development enviroment with CUDA version 12.4.
3434

3535
#### Install Software
3636

@@ -70,15 +70,15 @@ sudo systemctl restart docker
7070
Run this command to check the Docker configuration for CUDA:
7171

7272
```bash
73-
docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.1.0-devel-ubuntu22.04 nvidia-smi
73+
docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.4.0-devel-ubuntu22.04 nvidia-smi
7474
```
7575

7676
The output displays the CUDA version supported by the container:
7777

7878
```
79-
Thu Mar 23 14:43:51 2023
79+
Thu Jun 13 14:43:51 2024
8080
+-----------------------------------------------------------------------------+
81-
| NVIDIA-SMI 525.89.02 Driver Version: 525.89.02 CUDA Version: 12.1 |
81+
| NVIDIA-SMI 550.67. Driver Version: 550.67 CUDA Version: 12.4 |
8282
|-------------------------------+----------------------+----------------------+
8383
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
8484
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
@@ -102,26 +102,26 @@ Thu Mar 23 14:43:51 2023
102102
Start a shell within the container:
103103

104104
```bash
105-
docker run -it --rm --runtime=nvidia --gpus all nvidia/cuda:12.1.0-devel-ubuntu22.04 bash
105+
docker run -it --rm --runtime=nvidia --gpus all nvidia/cuda:12.4.0-devel-ubuntu22.04 bash
106106
```
107107

108108
Commands can then be run with CUDA support:
109109

110110
```shell
111111
root@5397e7ea7f57:/# nvcc --version
112112
nvcc: NVIDIA (R) Cuda compiler driver
113-
Copyright (c) 2005-2023 NVIDIA Corporation
114-
Built on Tue_Feb__7_19:32:13_PST_2023
115-
Cuda compilation tools, release 12.1, V12.1.66
116-
Build cuda_12.1.r12.1/compiler.32415258_0
113+
Copyright (c) 2005-2024 NVIDIA Corporation
114+
Built on Thu_Mar_28_02:18:24_PDT_2024
115+
Cuda compilation tools, release 12.4, V12.4.131
116+
Build cuda_12.4.r12.4/compiler.34097967_0
117117
```
118118

119119
The container can be viewed and managed using `docker ps` in another terminal or tab:
120120

121121
```bash
122122
system76@pop-os:~$ docker ps
123123
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
124-
5397e7ea7f57 nvidia/cuda:12.1.0-devel-ubuntu22.04 "/opt/nvidia/nvidia_…" 2 minutes ago Up 2 minutes boring_tesla
124+
5397e7ea7f57 nvidia/cuda:12.4.0-devel-ubuntu22.04 "/opt/nvidia/nvidia_…" 2 minutes ago Up 2 minutes boring_tesla
125125
```
126126

127127
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:
143143
```
144144
root@5397e7ea7f57:~/cuda-samples/Samples/0_Introduction/c++11_cuda# ls -l
145145
total 6108
146-
-rw-rw-r-- 1 1000 1000 13679 Mar 24 16:45 Makefile
146+
-rw-rw-r-- 1 1000 1000 13951 Mar 24 16:45 Makefile
147147
-rw-rw-r-- 1 1000 1000 2090 Mar 24 16:45 NsightEclipse.xml
148148
-rw-rw-r-- 1 1000 1000 3556 Mar 24 16:45 README.md
149-
-rwxr-xr-x 1 root root 1881448 Mar 24 16:48 c++11_cuda
149+
-rwxr-xr-x 1 root root 2147784 Mar 24 16:48 c++11_cuda
150150
...
151151
```
152152

0 commit comments

Comments
 (0)