Skip to content

Commit

Permalink
Get CUDA properties
Browse files Browse the repository at this point in the history
  • Loading branch information
scotts committed Nov 20, 2024
1 parent fa0109a commit 2419d49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion benchmarks/decoders/benchmark_readme_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@
"is_cuda_available": "True",
"machine": "x86_64",
"python_version": "3.12.5",
"system": "Linux"
"system": "Linux",
"cuda": "bogus"
}
}
6 changes: 5 additions & 1 deletion benchmarks/decoders/generate_readme_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ def main() -> None:
"system": platform.system(),
"machine": platform.machine(),
"python_version": str(platform.python_version()),
"is_cuda_available": str(torch.cuda.is_available()),
"cuda": (
str(torch.cuda.get_device_properties(0))
if torch.cuda.is_available()
else "not available"
),
},
}

Expand Down

0 comments on commit 2419d49

Please sign in to comment.