Open Samiepapa opened 2 years ago
1) CUDA 버전 확인
$ nvidia-smi
Mon Feb 7 19:52:48 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.46 Driver Version: 495.46 CUDA Version: 11.5 |
|-------------------------------+----------------------+----------------------+
| 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 ... Off | 00000000:01:00.0 Off | N/A |
| 0% 22C P8 22W / 350W | 5MiB / 24268MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 1 NVIDIA GeForce ... Off | 00000000:2E:00.0 Off | N/A |
| 0% 23C P8 17W / 350W | 71MiB / 24265MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 2 NVIDIA GeForce ... Off | 00000000:41:00.0 Off | N/A |
| 0% 23C P8 26W / 350W | 5MiB / 24268MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 3 NVIDIA GeForce ... Off | 00000000:61:00.0 Off | N/A |
| 0% 23C P8 28W / 350W | 5MiB / 24268MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2668 G /usr/lib/xorg/Xorg 4MiB |
| 1 N/A N/A 2668 G /usr/lib/xorg/Xorg 55MiB |
| 1 N/A N/A 2978 G /usr/bin/gnome-shell 14MiB |
| 2 N/A N/A 2668 G /usr/lib/xorg/Xorg 4MiB |
| 3 N/A N/A 2668 G /usr/lib/xorg/Xorg 4MiB |
+-----------------------------------------------------------------------------+
2) CUDA 11.3 버전에 맞는 stable한 pytorch 버전 설치하기 (https://pytorch.org/get-started/locally/ 참고)
pip3 install torch==1.10.2+cu113 torchvision==0.11.3+cu113 torchaudio==0.10.2+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html