Skip to content

Commit

Permalink
fix rocm api memory measurment
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Feb 14, 2024
1 parent ef50b83 commit 019cbad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ def test_api_memory_tracker(device, backend):
measured_memory = final_memory.max_allocated - initial_memory.max_allocated
elif device == "cuda":
measured_memory = final_memory.max_vram - initial_memory.max_vram
if torch.version.hip is not None:
measured_memory -= 1600 # something is wrong with amdsmi or rocm
else:
measured_memory = final_memory.max_ram - initial_memory.max_ram

Expand Down

0 comments on commit 019cbad

Please sign in to comment.