개발 블로그

CUDA, Nvidia graphic driver 버전 확인 방법 본문

AI/GPU

CUDA, Nvidia graphic driver 버전 확인 방법

draidev 2024. 12. 8. 19:55

CUDA 버전 확인

  • /usr/local 에서 cuda 버전 확인

    root@:$ls -al /usr/local 
    lrwxrwxrwx 1 root root 25 Sep 11 15:33 cuda-12 -> /etc/alternatives/cuda-12 
    drwxr-xr-x 15 root root 4096 Oct 31 10:31 cuda-12.6
  • nvidia-container-toolkit 설치 확인 : nvidia-container-cli info

    root@:$ nvidia-container-cli info 
    NVRM version: 560.35.03 
    CUDA version: 12.6 
    Device Index: 0 
    Device Minor: 0 
    Model: NVIDIA RTX A5000 
    Brand: NvidiaRTX 
    GPU UUID: GPU-a7a1d54c-cc19-aab5-29b9-97c8d100f696 
    Bus Location: 00000000:2a:00.0 
    Architecture: 8.6
  • nvcc -V

      root@:~$ nvcc -V 
      nvcc: NVIDIA (R) Cuda compiler driver
      Copyright (c) 2005-2019 NVIDIA Corporation
      Built on Sun_Jul_28_19:07:16_PDT_2019
      Cuda compilation tools, release **10.1, V10.1.243**
  • nvidia-smi

조건

  • -q, --query
    • Display GPU or Unit info.
    • Ex) nvidia-smi -q
  • -d, --display
    • Display only selected information: MEMORY, ECC 등…
    • Ex) nvidia-smi -q -d memory
  • -i, --id
    • Target a specific GPU.
    • Ex) nvidia-smi -q -d memory -i 0,3

그래픽 드라이버 버전 확인

  • 'cat /proc/driver/nvidia/version'
    NVRM version: NVIDIA UNIX x86\_64 Kernel Module 515.105.01 Mon Feb 27 12:49:44 UTC 2023 
    GCC version: gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
    Built on Sun_Jul_28_19:07:16_PDT_2019
    Cuda compilation tools, release 10.1, V10.1.243
Comments