Upload cuda-check.py
Browse files- cuda-check.py +6 -0
cuda-check.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/env python
|
2 |
+
# This exists because sometimes my laptop goes to sleep,
|
3 |
+
# and this disables cuda hw somehow
|
4 |
+
import torch
|
5 |
+
print("Is cuda available?")
|
6 |
+
print(torch.cuda.is_available())
|