Skip to content

Commit

Permalink
better kernel selection heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Aug 30, 2024
1 parent 947d6b5 commit 2ca2fa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/ops/einsum/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,7 @@ fn select_kernel_and_packing(
.iter()
.min_by_key(|a| {
((m as usize).divceil(a.0.mr()) * (n as usize).divceil(a.0.nr()))
* a.0.mr()
* a.0.nr()
* (a.0.mr() * a.0.nr() + 100)
})
.unwrap()
} else {
Expand Down

0 comments on commit 2ca2fa1

Please sign in to comment.