Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
1b0efb65
Unverified
Commit
1b0efb65
authored
Nov 18, 2025
by
Lei Wang
Committed by
GitHub
Nov 18, 2025
Browse files
[Bugfix] Minor fix for some cases (#1278)
parent
0f980f15
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
maint/gemm_v2/correctness_evaluation_tcgen05.py
maint/gemm_v2/correctness_evaluation_tcgen05.py
+11
-14
tilelang/intrinsics/tcgen05_macro_generator.py
tilelang/intrinsics/tcgen05_macro_generator.py
+3
-2
No files found.
maint/gemm_v2/correctness_evaluation_tcgen05.py
View file @
1b0efb65
...
...
@@ -191,7 +191,7 @@ def test_gemm_false_true(m, n, k, in_dtype, out_dtype, accum_dtype):
if
__name__
==
"__main__"
:
#
tilelang.testing.main()
tilelang
.
testing
.
main
()
# # Test Pass
# for m in [32, 64, 128, 256]:
...
...
@@ -203,6 +203,16 @@ if __name__ == "__main__":
# run_gemm(m, n, k * 3, False, True, "float16", "float", "float", m, n, k, 2, 128)
# print(f"Test {m} {n} {k} Pass")
# # Test Pass
# for m in [32, 64, 128, 256]:
# for n in [32, 64, 128]:
# for k in [16, 32, 64, 128]:
# if m in [32, 64] and (n not in [64, 128, 256]):
# continue
# print(f"======================= Test {m} {n} {k} False True =============================")
# run_gemm(m, n, k * 3, False, True, "float16", "float", "float", m, n, k, 2, 256)
# print(f"Test {m} {n} {k} Pass")
# # Test Pass
# for m in [32, 64, 128, 256]:
# for n in [16, 32, 64, 128]:
...
...
@@ -211,16 +221,3 @@ if __name__ == "__main__":
# continue
# print(f"======================= Test {m} {n} {k} False True =============================")
# run_gemm(m, n, k * 3, False, True, "float8_e5m2", "float", "float", m, n, k, 2, 128)
# print(f"Test {m} {n} {k} Pass")
tilelang
.
disable_cache
()
run_gemm
(
32
,
512
,
16
,
False
,
True
,
"float16"
,
"float32"
,
"float32"
,
32
,
512
,
16
,
0
,
128
)
run_gemm
(
32
,
512
,
32
,
False
,
True
,
"float16"
,
"float32"
,
"float32"
,
32
,
512
,
32
,
0
,
128
)
run_gemm
(
32
,
512
,
64
,
False
,
True
,
"float16"
,
"float32"
,
"float32"
,
32
,
512
,
64
,
0
,
128
)
run_gemm
(
64
,
512
,
16
,
False
,
True
,
"float16"
,
"float32"
,
"float32"
,
64
,
512
,
16
,
0
,
128
)
run_gemm
(
64
,
512
,
16
,
False
,
True
,
"float16"
,
"float32"
,
"float32"
,
32
,
512
,
16
,
0
,
128
)
run_gemm
(
128
,
512
,
16
,
False
,
True
,
"float16"
,
"float32"
,
"float32"
,
128
,
512
,
16
,
0
,
128
)
# run_gemm(64, 512, 32, False, True, "float16", "float32", "float32", 64, 512, 32, 0, 128)
# run_gemm(64, 512, 64, False, True, "float16", "float32", "float32", 64, 512, 64, 0, 128)
# run_gemm(128, 512, 16, False, True, "float16", "float32", "float32", 128, 512, 16, 0, 128)
tilelang/intrinsics/tcgen05_macro_generator.py
View file @
1b0efb65
...
...
@@ -247,8 +247,9 @@ class TensorCoreIntrinEmitter(MMAIntrinEmitter):
mask_zero
=
T
.
Cast
(
"int32"
,
0
)
mask0
=
mask1
=
mask2
=
mask3
=
mask_zero
num_inst_m
=
4
*
self
.
warp_row_tiles
//
atom_m
num_inst_n
=
self
.
warp_col_tiles
//
atom_n
# TCGEN05 only has one warp group
num_inst_m
=
self
.
block_row_warps
*
self
.
warp_row_tiles
//
atom_m
num_inst_n
=
self
.
block_col_warps
*
self
.
warp_col_tiles
//
atom_n
# Helper to allow BufferRegion/BufferLoad as inputs
def
access_ptr_from
(
buffer_or_load_or_region
,
access_type
:
str
=
"r"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment