Skip to content

Commit 75445b5

Browse files
authored
Merge pull request #51 from InfiniTensor/disable-reduced-precision-reductions-in-fp16-and-bf16-gemms
Disable reduced precision reductions in FP16 and BF16 GEMMs
2 parents a8ed90a + e3bef60 commit 75445b5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
import torch
66

77

8+
def pytest_configure():
9+
torch.backends.cuda.matmul.allow_fp16_reduced_precision_reduction = False
10+
torch.backends.cuda.matmul.allow_bf16_reduced_precision_reduction = False
11+
12+
813
def pytest_collectstart(collector):
914
if isinstance(collector, pytest.Module):
1015
_set_random_seed(_hash(collector.name))

0 commit comments

Comments
 (0)