본문 바로가기

CUDA

CUDA Driver와 CUDA Toolkit의 호환 테이블

CUDA를 이용한 컴파일을 위해서는 내가 가진 NVIDIA 그래픽 카드의 드라이버와 CUDA Toolkit의 버전이 호환되어여야 한다.

 

예를 들어, 나는 비루한 NVIDIA QUADRO P2200을 가지고 있다.

 

여기서 찾아보자

https://www.nvidia.com/en-us/drivers/

 

Download The Latest Official NVIDIA Drivers

Download the latest official NVIDIA drivers to enhance your PC gaming experience and run apps faster.

www.nvidia.com

 

550.135를 쓰란다.

 

그러면, 뭐 이렇게 설치 좀 해주고,

sudo apt-get install nvidia-driver-550

 

Ubuntu에서는 그놈 데스크탑에서 Additional Driver에서 Update로 해도 된다.

 

어쩄거나, 이렇게 설치한 드라이버가 Toolkit 버전과 맞아야 된다.

 

그건 여기서,

https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html

 

CUDA 12.6 Update 3 Release Notes

Using long-deprecated cusolverDnPotrf, cusolverDnPotrs, cusolverDnGeqrf, cusolverDnGetrf, cusolverDnGetrs, cusolverDnSyevd, cusolverDnSyevdx, cusolverDnGesvd, and their accompanying bufferSize functions will result in a deprecation warning. The warning can

docs.nvidia.com

 

나는 우분투 쓰니까, 550은 대충 12.4를 써야되나 보다.

그런데, 확인을 해보자

$ nvidia-smi
Wed Nov 27 23:42:47 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.127.05             Driver Version: 550.127.05     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. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  Quadro P2200                   Off |   00000000:2D:00.0  On |                  N/A |
| 48%   35C    P8              7W /   75W |     890MiB /   5120MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2773      G   /usr/lib/xorg/Xorg                            181MiB |
|    0   N/A  N/A      2931    C+G   ...libexec/gnome-remote-desktop-daemon        518MiB |
|    0   N/A  N/A      2994      G   /usr/bin/gnome-shell                          183MiB |
+-----------------------------------------------------------------------------------------+

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Oct_29_23:50:19_PDT_2024
Cuda compilation tools, release 12.6, V12.6.85
Build cuda_12.6.r12.6/compiler.35059454_0

 

550.127은 12.4를 써야되는데, 12.6이 깔려 있는거 같다.

 

'CUDA' 카테고리의 다른 글

CUDPP and MPS  (0) 2024.12.25
CUDA Test build  (0) 2024.11.28