Skip to content
Open
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
3 changes: 2 additions & 1 deletion mlx/backend/metal/matmul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ void steel_matmul_regular_axpby(
int tm = (M + bm - 1) / bm;

// TODO: Explore device-based tuning for swizzle
int swizzle_log = 0; // tm >= 6 ? 3 : (tm <= 3 ? 0 : 2);
// Use swizzle for batched operations with larger tile grids
int swizzle_log = (batch_size_out > 1 && tm >= 8 && tn >= 8) ? 1 : 0;

// Prepare steel matmul params
GEMMParams params{
Expand Down