Skip to content

Commit ae9dbfc

Browse files
committed
[Tests] Fix assert bug for fp8e5 dot on sm120.
1 parent 715f6b1 commit ae9dbfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/test/unit/language/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3480,7 +3480,7 @@ def kernel(X, stride_xm, stride_xk, Y, stride_yk, stride_yn, W, stride_wn, strid
34803480
if capability[0] == 9 and M >= 64 and N >= 8:
34813481
assert 'wgmma.mma_async.sync.aligned.m64n128k32.f32.e5m2.e5m2' in ptx
34823482
elif capability[0] >= 8 and M < 64:
3483-
assert 'mma.sync.aligned.m16n8k16.row.col.f32.f16.f16.f32' in ptx
3483+
assert ('mma.sync.aligned.m16n8k16.row.col.f32.f16.f16.f32' in ptx) or ('mma.sync.aligned.m16n8k32.row.col.f32.e5m2.e5m2.f32' in ptx)
34843484
elif in_dtype == "float8e4nv" and out_dtype == tl.float32:
34853485
if capability[0] == 9 and M >= 64 and N >= 8:
34863486
assert 'wgmma.mma_async.sync.aligned.m64n128k32.f32.e4m3.e4m3' in ptx

0 commit comments

Comments
 (0)