ticketguy commited on
Commit
cff6c87
·
verified ·
1 Parent(s): 43773e7

Upload test_gpu.py

Browse files
Files changed (1) hide show
  1. test_gpu.py +5 -0
test_gpu.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import torch
2
+ print('CUDA available:', torch.cuda.is_available())
3
+ if torch.cuda.is_available():
4
+ print('Device:', torch.cuda.get_device_name(0))
5
+ print('Memory:', torch.cuda.get_device_properties(0).total_memory / 1e9, 'GB')