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
1940b3c9
Commit
1940b3c9
authored
May 31, 2025
by
Lei Wang
Committed by
LeiWang1999
May 31, 2025
Browse files
[Bugfix] Fix a bug when simplifying warp combination for T.gemm (#540)
parent
a65f481e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/op/gemm.cc
src/op/gemm.cc
+0
-4
tilelang/jit/__init__.py
tilelang/jit/__init__.py
+3
-0
No files found.
src/op/gemm.cc
View file @
1940b3c9
...
@@ -194,10 +194,6 @@ std::pair<int, int> Gemm::ComputeWarpPartition(int num_warps, Target target,
...
@@ -194,10 +194,6 @@ std::pair<int, int> Gemm::ComputeWarpPartition(int num_warps, Target target,
// Try all possible combinations that satisfy the constraints
// Try all possible combinations that satisfy the constraints
for
(
int
m
=
1
;
m
<=
max_m_warps
&&
m
<=
num_warps
;
m
++
)
{
for
(
int
m
=
1
;
m
<=
max_m_warps
&&
m
<=
num_warps
;
m
++
)
{
int
n
=
num_warps
/
m
;
int
n
=
num_warps
/
m
;
if
(
n
>
max_n_warps
)
continue
;
if
(
m
*
n
!=
num_warps
)
continue
;
// Calculate how balanced this partition is
// Calculate how balanced this partition is
float
m_per_warp
=
static_cast
<
float
>
(
this
->
M
)
/
(
m
*
kMPerWarp
);
float
m_per_warp
=
static_cast
<
float
>
(
this
->
M
)
/
(
m
*
kMPerWarp
);
...
...
tilelang/jit/__init__.py
View file @
1940b3c9
...
@@ -179,6 +179,9 @@ class _JitImplementation:
...
@@ -179,6 +179,9 @@ class _JitImplementation:
else
:
else
:
raise
ValueError
(
f
"Invalid function type:
{
type
(
program_result_source
)
}
"
)
raise
ValueError
(
f
"Invalid function type:
{
type
(
program_result_source
)
}
"
)
if
self
.
verbose
:
logger
.
info
(
f
"Verbose: Compiling for program
\n
{
program_result
.
script
()
}
"
)
kernel_result
=
compile
(
kernel_result
=
compile
(
program_result
,
program_result
,
out_idx
=
self
.
out_idx
,
out_idx
=
self
.
out_idx
,
...
...
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