Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fbgemm_gpu/test/tbe/cache/cache_overflow_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def test_cache_int32_overflow(self, stochastic_rounding: bool) -> None:
cache_sets = 10**6

current_device = torch.device(torch.cuda.current_device())
total_memory = torch.cuda.get_device_properties(current_device).total_memory
free_memory = total_memory - torch.cuda.memory_reserved(current_device)
free_memory, _ = torch.cuda.mem_get_info(current_device)
free_memory = int(free_memory * 0.8)

# Weight and cache precisions are fixed to FP16
element_size = 2
Expand Down