파이썬 GPU CUDA Torch를 이용한 확인
IT/JAVA
2023. 8. 23. 16:58
![귀찮아-[이모티콘]어밴드](https://blog.kakaocdn.net/dna/b7VhvJ/btsr0tVtlhx/AAAAAAAAAAAAAAAAAAAAAGc0PJPUHONIqsSHTqzfrC35C5ufxAAp5sir0J8hM6ZW/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&expires=1796050799&allow_ip=&allow_referer=&signature=pKiEIqZXspjO9w4mlENlyc7CYdE%3D)
import torch
print(torch.cuda.is_available())
print(torch.cuda.current_device())
print(torch.cuda.get_device_name(0))
torch를 이용해서 gpu 확인 되면
아래 console로 확인됨.
True
0
NVIDIA A100 80GB PCIe728x90
'IT > JAVA' 카테고리의 다른 글
| Dockerfile에서 Python venv 자동 활성화하기 (0) | 2025.09.23 |
|---|---|
| 파이썬 jupyterlab command 설명 및 실행 (0) | 2023.08.23 |
| spring에서 특정 프로퍼티가 없으면 빈이 등록되지 않는 어노테이션 - @ConditionalOnProperty (2) | 2023.05.08 |
| 디자인 패턴 : 팩토리 메서드(Factory Method) 에서 대해서 알아보자. (0) | 2023.04.19 |
| 자바 리스트(ArrayList)와 배열(Array)의 차이점 3가지 (0) | 2018.06.05 |