Skip to content

Commit 6d5a291

Browse files
committed
[Testing] Reduce sample test flake
Signed-off-by: Jay Gu <jagu@nvidia.com>
1 parent ebaa570 commit 6d5a291

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

samples/MatMul.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def cutile_matmul(A: torch.Tensor, B: torch.Tensor, persistent: bool = False) ->
298298
# Ampere tfloat32 numerics is loose
299299
atol, rtol = 1e-2, 1e-2
300300
else:
301-
atol, rtol = 1e-4, 1e-3
301+
atol, rtol = 2e-4, 1e-3
302302

303303
# Perform matrix multiplication using the cuTile wrapper function.
304304
C_fp32_cutile = cutile_matmul(A_fp32, B_fp32)

samples/templates/MatMul.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def cutile_matmul(A: torch.Tensor, B: torch.Tensor, persistent: bool = False) ->
131131
# Ampere tfloat32 numerics is loose
132132
atol, rtol = 1e-2, 1e-2
133133
else:
134-
atol, rtol = 1e-4, 1e-3
134+
atol, rtol = 2e-4, 1e-3
135135

136136
# Perform matrix multiplication using the cuTile wrapper function.
137137
C_fp32_cutile = cutile_matmul(A_fp32, B_fp32)

0 commit comments

Comments
 (0)