1 분 소요

  1. Ubuntu 설치 (완료)
  2. Conda 설치 (완료)
  3. cuda toolkit 설치 (완료)
    1. sudo apt install nvidia-cuda-toolkit
    2. cuda version 확인: nvcc -V ⇒ release 11.5

       nvcc: NVIDIA (R) Cuda compiler driver
       Copyright (c) 2005-2021 NVIDIA Corporation
       Built on Thu_Nov_18_09:45:30_PST_2021
       Cuda compilation tools, release 11.5, V11.5.119
       Build cuda_11.5.r11.5/compiler.30672275_0
      
  4. GPU 연결하기 (완료)
    1. 시스템에 설치할 수 있는 Nvidia 그래픽 드라이버 목록을 확인
    2. sudo ubuntu-drivers list

       nvidia-driver-525-open, (kernel modules provided by linux-modules-nvidia-525-open-generic-hwe-22.04)
       nvidia-driver-525, (kernel modules provided by linux-modules-nvidia-525-generic-hwe-22.04)
       nvidia-driver-535-server, (kernel modules provided by linux-modules-nvidia-535-server-generic-hwe-22.04)
       nvidia-driver-470-server, (kernel modules provided by linux-modules-nvidia-470-server-generic-hwe-22.04)
       nvidia-driver-525-server, (kernel modules provided by linux-modules-nvidia-525-server-generic-hwe-22.04)
       nvidia-driver-470, (kernel modules provided by linux-modules-nvidia-470-generic-hwe-22.04)
       nvidia-driver-535, (kernel modules provided by linux-modules-nvidia-535-generic-hwe-22.04)
       nvidia-driver-535-server-open, (kernel modules provided by linux-modules-nvidia-535-server-open-generic-hwe-22.04)
       nvidia-driver-535-open, (kernel modules provided by linux-modules-nvidia-535-open-generic-hwe-22.04)
      
    3. 버전 535 설치 sudo apt install nvidia-driver-535
    4. 드라이버 설치가 완료되면 시스템을 다시 부팅한다 sudo reboot
    5. 부팅 후, Nvidia 그래픽 드라이버가 올바르게 작동하는지 확인, 설치된 드라이버 확인 nvidia-smi

       Thu Jul 27 18:56:48 2023       
       +---------------------------------------------------------------------------------------+
       | NVIDIA-SMI 535.54.03              Driver Version: 535.54.03    CUDA Version: 12.2     |
       |-----------------------------------------+----------------------+----------------------+
       | 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  NVIDIA GeForce RTX 3060        Off | 00000000:2B:00.0  On |                  N/A |
       |  0%   42C    P8              24W / 170W |   1621MiB / 12288MiB |      6%      Default |
       |                                         |                      |                  N/A |
       +-----------------------------------------+----------------------+----------------------+
                                                                                                       
       +---------------------------------------------------------------------------------------+
       | Processes:                                                                            |
       |  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
       |        ID   ID                                                             Usage      |
       |=======================================================================================|
       |    0   N/A  N/A      1215      G   /usr/lib/xorg/Xorg                          412MiB |
       |    0   N/A  N/A      1500      G   /usr/bin/gnome-shell                        154MiB |
       |    0   N/A  N/A      3607      G   gnome-control-center                         64MiB |
       |    0   N/A  N/A      3815      G   ...ures=SpareRendererForSitePerProcess      266MiB |
       |    0   N/A  N/A      3984      G   ...ures=SpareRendererForSitePerProcess      398MiB |
       |    0   N/A  N/A      4032      G   ...irefox/2908/usr/lib/firefox/firefox      247MiB |
       +---------------------------------------------------------------------------------------+
      
      • GPU 이름: NVIDIA GeForce RTX 3060
      • 온도: 42도(Celsius)
      • 성능: P8 (낮은 성능 모드)
      • 전력 사용량: 24W / 170W (전력 사용량 / 전력 용량)
      • 메모리 사용량: 1621MiB / 12288MiB (사용 중인 메모리 / 총 메모리)
      • GPU 활용도: 6% (현재 GPU가 사용 중인 작업량의 비율)
    6. 오류 났을 때, 시스템 종료 shutdown -h now

댓글남기기