@@ -298,7 +298,7 @@ def cutile_matmul(A: torch.Tensor, B: torch.Tensor, persistent: bool = False) ->
298298 C_fp32_cutile = cutile_matmul (A_fp32 , B_fp32 )
299299 print (f"cuTile Output C shape: { C_fp32_cutile .shape } , dtype: { C_fp32_cutile .dtype } " )
300300 if args .correctness_check :
301- torch .testing .assert_close (C_fp32_cutile , A_fp32 @ B_fp32 , atol = 1e -5 , rtol = 1e-3 )
301+ torch .testing .assert_close (C_fp32_cutile , A_fp32 @ B_fp32 , atol = 2e -5 , rtol = 1e-3 )
302302 print ("Correctness check passed" )
303303 else :
304304 print ("Correctness check disabled" )
@@ -319,7 +319,7 @@ def cutile_matmul(A: torch.Tensor, B: torch.Tensor, persistent: bool = False) ->
319319 C_non_mult_cutile = cutile_matmul (A_non_mult , B_non_mult )
320320 print (f"cuTile Output C shape: { C_non_mult_cutile .shape } , dtype: { C_non_mult_cutile .dtype } " )
321321 if args .correctness_check :
322- torch .testing .assert_close (C_non_mult_cutile , A_non_mult @ B_non_mult , atol = 1e -5 , rtol = 1e-3 )
322+ torch .testing .assert_close (C_non_mult_cutile , A_non_mult @ B_non_mult , atol = 2e -5 , rtol = 1e-3 )
323323 print ("Correctness check passed" )
324324 else :
325325 print ("Correctness check disabled" )
@@ -330,7 +330,7 @@ def cutile_matmul(A: torch.Tensor, B: torch.Tensor, persistent: bool = False) ->
330330 print (f"cuTile Output C shape: { C_persistent_fp32_cutile .shape } , "
331331 f"dtype: { C_persistent_fp32_cutile .dtype } " )
332332 if args .correctness_check :
333- torch .testing .assert_close (C_persistent_fp32_cutile , A_fp32 @ B_fp32 , atol = 1e -5 , rtol = 1e-3 )
333+ torch .testing .assert_close (C_persistent_fp32_cutile , A_fp32 @ B_fp32 , atol = 2e -5 , rtol = 1e-3 )
334334 print ("Correctness check passed" )
335335 else :
336336 print ("Correctness check disabled" )
0 commit comments