Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions gradlib/gradlib/GemmTuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,13 @@ def asm_gemm_all_solutions(self):
)
if self.k / splitK < subK:
break
# splitK kernels use a semaphore array of size gdx*gdy; skip
# candidates where the grid exceeds the 1024-entry limit.
if splitK > 1:
gdx = (self.n + tile_n - 1) // tile_n
gdy = (self.m + tile_m - 1) // tile_m
if gdx * gdy > 1024:
continue
task_asm.append(
(
info,
Expand Down
Loading