Skip to content

Commit c8d4f59

Browse files
committed
fix ut
1 parent 53a26c3 commit c8d4f59

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/test/unit/hopper/test_gemm_fusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_gemm_fusion():
8080
BLOCK_M, BLOCK_N, BLOCK_K, #
8181
num_warps=num_warps)
8282

83-
torch.testing.assert_close(ref_out, E, atol=3e-1, rtol=0)
83+
torch.testing.assert_close(ref_out, E, atol=1e-2, rtol=0)
8484

8585

8686
@triton.jit

python/test/unit/hopper/test_persistent_warp_specialized_gemm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def test_user_defined_persistent_non_warp_specialized_gemm(M, N, K, BLOCK_M, BLO
171171
num_ctas=NUM_CTAS)
172172

173173
th_c = torch.matmul(a, b)
174-
torch.testing.assert_close(th_c, c, atol=5e-1, rtol=0, check_dtype=False)
174+
torch.testing.assert_close(th_c, c, atol=1e-2, rtol=0, check_dtype=False)
175175

176176

177177
@triton.jit
@@ -317,7 +317,7 @@ def test_non_persistent_warp_specialized_gemm(M, N, K, BLOCK_M, BLOCK_N, BLOCK_K
317317
num_ctas=NUM_CTAS)
318318

319319
th_c = torch.matmul(a, b)
320-
torch.testing.assert_close(th_c, c, atol=5e-2, rtol=0, check_dtype=False)
320+
torch.testing.assert_close(th_c, c, atol=1e-2, rtol=0, check_dtype=False)
321321

322322

323323
@triton.jit
@@ -467,7 +467,7 @@ def test_user_defined_persistent_warp_specialized_gemm(M, N, K, BLOCK_M, BLOCK_N
467467
num_warps=4, num_ctas=NUM_CTAS)
468468

469469
th_c = torch.matmul(a, b)
470-
torch.testing.assert_close(th_c, c, atol=5e-1, rtol=0, check_dtype=False)
470+
torch.testing.assert_close(th_c, c, atol=1e-2, rtol=0, check_dtype=False)
471471

472472

473473
@triton.jit

0 commit comments

Comments
 (0)