Skip to content

Commit

Permalink
Make sure report works without GPU (#201)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Delaunay <[email protected]>
  • Loading branch information
Delaunay and Pierre Delaunay authored Feb 26, 2024
1 parent 629bee3 commit 9bcb741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion milabench/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def resolve_addresses(nodes):


def get_gpu_capacity():
capacity = float("+inf")
capacity = float(0)

for k, v in get_gpu_info()["gpus"].items():
capacity = min(v["memory"]["total"], capacity)
Expand Down

0 comments on commit 9bcb741

Please sign in to comment.