-
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.
Implement int8 GEMM kernel for x86_64 using AVX2 instructions
This uses the pre-VNNI instruction sequence for u8 x i8 -> i32 dot products: ``` _mm256_maddubs_epi16 _mm256_madd_epi16 _mm256_add_epi32 ``` The first instruction can saturate when adding pairs of intermediate 16-bit signed ints. This can be avoided by limiting the range of the u8 LHS input.
- Loading branch information
1 parent
8e612d7
commit fc61865
Showing
2 changed files
with
319 additions
and
8 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
Oops, something went wrong.