Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cottrell committed Oct 24, 2023
1 parent 19500cf commit 94c6536
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 2023-10-24

Installing torch breaks jax.
14 changes: 14 additions & 0 deletions torch/check_gpu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python
import torch
torch.cuda.current_device()
torch.cuda.device_count()
torch.cuda.get_device_name(0)
# device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
# print('Using device:', device)
# print()
#
# if device.type == 'cuda':
# print(torch.cuda.get_device_name(0))
# print('Memory Usage:')
# print('Allocated:', round(torch.cuda.memory_allocated(0)/1024**3,1), 'GB')
# print('Cached: ', round(torch.cuda.memory_cached(0)/1024**3,1), 'GB')

0 comments on commit 94c6536

Please sign in to comment.