PharmAI / check_gpu.py
Hattie's picture
Initial PharmAI deployment
9316888
Raw
History Blame Contribute Delete
259 Bytes
import torch
print("PyTorch :", torch.__version__)
print("CUDA :", torch.version.cuda)
print("GPU? :", torch.cuda.is_available())
if torch.cuda.is_available():
print("GPU name:", torch.cuda.get_device_name(0))
else:
print("GPU name: 없음")