forked from pytorch/FBGEMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the Naive bfloat16 implementation based on MKL
Summary: Add the Naive bfloat16 implemenetation based on MKL. For this Naive bfloat16 implementation for C += A * B (A, B, and C are all bfloat16 type), we do the following three steps: 1. Convert bfloat16 A, B, C to fp32; 2. Call cblas_sgemm from MKL/BLAS; 3. Convert fp32 C back to bfloat16 C. Reviewed By: jspark1105 Differential Revision: D14391444 fbshipit-source-id: 1147dd2a18c4bbdec6c15f1d0f15d698d3741afe
- Loading branch information
1 parent
6011ce3
commit 1351790
Showing
2 changed files
with
58 additions
and
0 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
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