Skip to content

Commit

Permalink
Check cuda script advances #26
Browse files Browse the repository at this point in the history
  • Loading branch information
pab1s committed Jun 24, 2024
1 parent f88a6e4 commit 129f81e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions device_check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import torch

def main():
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
print(f"Device: {device}")

if __name__ == "__main__":
main()

0 comments on commit 129f81e

Please sign in to comment.