-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Pack-peel-4-level-tiling] Enable Matmul+Trunci : i8->i8 on Phoenix|…
…Strix + Ukernel|Vectorization (#1084) Add support for handling Matmul + Trunci : i8->i8 on Phoenix/Strix. On Phoenix it works via both vectorization as well as ukernel path. On Strix it currently works only via ukernel path. Therefore, for now, three e2e CI tests have been added. Signed-off-by: Abhishek Varma <[email protected]>
- Loading branch information
1 parent
08e7777
commit 8d01ec9
Showing
11 changed files
with
377 additions
and
20 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
build_tools/ci/cpu_comparison/matmul_template/matmul_trunci_MxK_KxN.mlir
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// input ${M}x${K}x${TYPE1} | ||
// input ${K}x${N}x${TYPE1} | ||
|
||
func.func @matmul_trunci(%arg0: tensor<${M}x${K}x${TYPE1}>, %arg1: tensor<${K}x${N}x${TYPE1}>) -> tensor<${M}x${N}x${TYPE1}> | ||
{ | ||
%cst = arith.constant ${ZERO} : ${TYPE2} | ||
%0 = tensor.empty() : tensor<${M}x${N}x${TYPE2}> | ||
%1 = linalg.fill ins(%cst : ${TYPE2}) outs(%0 : tensor<${M}x${N}x${TYPE2}>) -> tensor<${M}x${N}x${TYPE2}> | ||
%2 = linalg.matmul ins(%arg0, %arg1 : tensor<${M}x${K}x${TYPE1}>, tensor<${K}x${N}x${TYPE1}>) | ||
outs(%1: tensor<${M}x${N}x${TYPE2}>) -> tensor<${M}x${N}x${TYPE2}> | ||
%3 = arith.trunci %2 : tensor<${M}x${N}x${TYPE2}> to tensor<${M}x${N}x${TYPE1}> | ||
return %3: tensor<${M}x${N}x${TYPE1}> | ||
} |
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
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.