Skip to content

Commit 4884d98

Browse files
committed
[Bugfix] Fix a bug when simplifying warp combination for T.gemm (tile-ai#540)
1 parent 3239182 commit 4884d98

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/op/gemm.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,6 @@ std::pair<int, int> Gemm::ComputeWarpPartition(int num_warps, Target target,
194194
// Try all possible combinations that satisfy the constraints
195195
for (int m = 1; m <= max_m_warps && m <= num_warps; m++) {
196196
int n = num_warps / m;
197-
if (n > max_n_warps)
198-
continue;
199-
if (m * n != num_warps)
200-
continue;
201197

202198
// Calculate how balanced this partition is
203199
float m_per_warp = static_cast<float>(this->M) / (m * kMPerWarp);

tilelang/jit/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> Any:
179179
else:
180180
raise ValueError(f"Invalid function type: {type(program_result_source)}")
181181

182+
if self.verbose:
183+
logger.info(f"Verbose: Compiling for program \n {program_result.script()}")
184+
182185
kernel_result = compile(
183186
program_result,
184187
out_idx=self.out_idx,

0 commit comments

Comments
 (0)