Skip to content

Commit beef1e8

Browse files
author
root
committed
update align32 strategy for mm_kernel
1 parent ff67bc6 commit beef1e8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/flag_gems/ops/mm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@libtuner(
1717
configs=runtime.get_tuned_config("mm"),
1818
key=["M", "N", "K"],
19-
strategy=["log", "log", "log"],
19+
strategy=["align32", None, None],
2020
)
2121
@triton.heuristics(runtime.get_heuristic_config("mm"))
2222
@triton.jit

src/flag_gems/utils/libentry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def all_kwargs(self):
6666
STRATEGY = {
6767
None: lambda v: v,
6868
"log": lambda v: math.ceil(math.log2(v)),
69+
"align32": lambda v: (v // 32) * 32,
6970
}
7071

7172

0 commit comments

Comments
 (0)