![윈도우 환경에서 GPU 사용하기](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fca4ein%2FbtsD2uCu3k9%2FUA4VCZrtZy3vKGm8VuWPw0%2Fimg.png)
1. PC 장착된 GPU 모델 확인
- 현재 그래픽 카드 정보
NVIDIA Geforce RTX 3090
2. CUDA Veresion 확인
nvidia-smi
Compute Capability: https://en.wikipedia.org/wiki/CUDA#GPUs_supported
CUDA - Wikipedia
From Wikipedia, the free encyclopedia Parallel computing platform and programming model CUDA (or Compute Unified Device Architecture) is a proprietary and closed-source parallel computing platform and application programming interface (API) that allows sof
en.wikipedia.org
사이트에서 CUDA 버전에 맞는 Compute Capability 확인할 수 있으며, 현재 NVIDIA GeForce RTX 3090의 CUDA Capability는 8.6 이다.
3. CUDA Toolkit 설치
다운로드 페이지: https://developer.nvidia.com/cuda-toolkit-archive
CUDA Toolkit Archive
Previous releases of the CUDA Toolkit, GPU Computing SDK, documentation and developer drivers can be found using the links below. Please select the release you want from the list below, and be sure to check www.nvidia.com/drivers for more recent production
developer.nvidia.com
4. cuDNN 설치
다운로드 페이지(회원 가입 필수): https://developer.nvidia.com/rdp/cudnn-archive
cuDNN Archive
Download releases from the GPU-accelerated primitive library for deep neural networks.
developer.nvidia.com
다운로드 파일 압축 후 bin, include, lib 폴더 존재
CUDA Toolkit 설치 된 폴더에 존재하는 bin, include, lib 폴더에 다운로드한 bin, include, lib 폴더 내의 파일을 추가
C:\Program Files\NVIDIA GPU Computing Toolkit # 윈도우 설치 기본 경로
5. GPU 활용 가능 테스트 코드
import tensorflow as tf # tensorflow
tf.config.list_physical_devices('GPU')
from tensorflow.python.client import device_lib
device_lib.list_local_devices()
import torch #pytorch
torch.cuda.is_available()
'System Management' 카테고리의 다른 글
Docker 기반 Slurm Cluster 구성하기 (0) | 2024.05.21 |
---|---|
Docker Ubuntu 이미지에서 R 설치 (0) | 2022.12.27 |
리눅스 환경에서 OpenSSL 설치 후 Python 3.10 설치 (0) | 2022.07.05 |
Mac에서 제거 가능한 저장 공간 바로 삭제하기 (0) | 2022.05.05 |
Docker push no basic auth credentials nexus error (0) | 2022.02.13 |
Korean BioInformation Center(KOBIC) Korea Research Institute of Bioscience & Biotechnology Address: #52 Eoeun-dong, Yuseong-gu, Deajeon, 305-806, KOREA +82-10-9936-2261 e-mail: kogun82@kribb.re.kr Blog: kogun82.tistory.com Homepage: www.kobic.re.kr
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!