-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize int8 GEMV with non-transposed B matrix
Instead of loading 4 rows of 4 elements from B at a time, load 4 rows of 16 elements and interleave to give 4 x 4x4 transposed tiles. The inner loop over K was also changed to manually increment `k` instead of using `range_chunks_exact` as this generated slightly better code. On an M3 Pro this improved the `bench_gemm_mix` gemv benchmark for int8 from ~45 GFLOPS to ~60 GFLOPS for the non-transposed case.
- Loading branch information
1 parent
c6da16e
commit 523330a
Showing
1 changed file
with
80 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters