vlm-demo / gpu_test.py
mattb512's picture
add python gpu test
df85439
raw
history blame
No virus
179 Bytes
import torch
print(f"is availeble = {torch.cuda.is_available()}")
print(f"device count = {torch.cuda.device_count()}")
print(f"current device = {torch.cuda.current_device()}")