forked from buddy-compiler/buddy-mlir
-
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.
[Midend] Enhancements and Optimizations for batch matmul and convolut…
…ion [Examples] Added MLIRLinalg Examples for Various Optimization Options. (#1) * [examples] Add mobilenet example. Co-authored-by: zhanghb97 <[email protected]> Co-authored-by: qingqing12138 <[email protected]> * [examples] Add examples for transformer-based model optimization. * [examples] Add convolution optimization examples (buddy-compiler#333) --------- Co-authored-by: FloatingcloudKnight <‘[email protected]’> * bmm2mm 0.0 * [examples] Add attention loop and fusion example. * [BuddyWhisper] Add whisper model example and Conv1d operation. Co-authored-by: zhanghb97 <[email protected]> * [examples] Add rtclock to attention fusion examples. * [thirdparty] Add riscv-gnu-toolchain as an submodule. * [RVV] Add RVV environment guide and update examples. * [examples] Annotate the llama mlir code. (buddy-compiler#337) * [thirdparty] Remove legacy RISC-V toolchain. * [frontend] Update convolution groups feature. (buddy-compiler#338) * [examples] Update Whisper README doc. * [NFC] Make buddy tests and examples depends on mlir-cpu-runner (buddy-compiler#342) * [examples] Add vector iteration example. * [DAP/Whisper]Add Whisper Preprocessor. (buddy-compiler#313) * [examples] Add MLIR CF example. * [examples] Fix cf-iteration-exit filecheck. * [example] Fix cf-iteration-exit example. * [examples] Add sigmoid and rope case. * tiling batch matmul * tiling batch matmul * [frontend] Add missing dependencies into DAP target. (buddy-compiler#357) Ninja introduced different build graph algorithm in version v1.12.0, which will required project to explicitly specify dependencies. Without this commit, ninja v1.12.0 will not link mlir-translate and llc before the DAP target and causing build failure. * bmm tile try to remove redundant subview * pass check * bmm tile try to remove redundant subview * bmm tile to vector.load/store * buddy opt add(fake rvv version) * bmm fuse for loop * bmm m n border control add * [Container] Use integrated audio decoding method. * [examples] Use container to read audio file. Co-authored-by: taiqzheng <[email protected]> * [NFC] Fix warnings. * [build system] use variable from LLVMConfig (buddy-compiler#359) * [build system] use variable from LLVMConfig In the previous build script, we always assumed that the binary and the library are relative to the MLIR_DIR variable. But this prevents buddy-mlir from properly packaging by the system. We should use the LLVMConfig.cmake file to have a more flexible build system. Signed-off-by: Avimitin <[email protected]> * [python] add install target for buddy python modules * [nix] update buddy-mlir derivation Signed-off-by: Avimitin <[email protected]> --------- Signed-off-by: Avimitin <[email protected]> * [chore] fix typo in pass manager (buddy-compiler#360) Signed-off-by: Avimitin <[email protected]> * [container] Add initial standalone image container. * remove rvv * add int support * [examples] Add initial GPU matmul transform example. * [examples] Add conv2d-nhwc-fhwc manual vectorization. * [Container] Add encoder for wav audio format. (buddy-compiler#366) * [examples] Fix rvv intrinsic. * [midend] Fix batch matmul vectorization pass. * [example] Fix typo. * [examples] LeNet E2E pipeline uses batchmatmul-optimize pass. * [examples] Fix LeNet E2E pipeline. * [examples] Add memref type generation example. * [NFC] Fix typo. * [Docs] Add Python Virtual Environment Setup Guide. (buddy-compiler#373) * [examples] Update module generation example. * add conv nhwc * add conv nhwc * oc bug repair * [Examples] Adapt Audio Container for dap examples. (buddy-compiler#369) * [Examples] Adapt the new Audio Container for 'buddy-whisper-preprocess' example. * [Examples] Adapt the new Audio container for 'buddy-biquad' example. * [Examples] Adapt the new Audio Container for 'buddy-fir' example. * [Examples] Adapt the new Audio Container for 'buddy-iir-scalar' example. * [Examples] Adapt the new Audio Container for 'buddy-iir-vectorization' example. * [DAP] Merge 'BuddyLibDAPVectorization' library into 'BuddyLibDAP' library. * [Container] Update the Audio container to support converting a MemRef (base class) object to an Audio (derived class) object. * [Examples] Adapt the new constructor in the Audio Container to facilitate the conversion of a MemRef object to an Audio object. * [Container] Handle corner case for NaN. Reset NaN to 1. * conv2d +dilation,strides * conv2d +tilling * fixed int float determine * conv2d to forall * clear useless commits * conv2d pass float test * add bmm scf * add depthwise * add depthwise correct * [DAP/Whisper] Extract RFFT operation from 'dap.whisper_preprocess'. (buddy-compiler#379) * [DAP/Whisper] Remove 'memref.copy' operation in 'dap.whisper_preprocess'. * [DAP] Extract RFFT400Op from 'dap.whisper_preprocess'. * for dev merge * [examples] add MLIRLinalg example for options: 1.conv-nhwc-fhwc-optimize 2.conv-nhwc-fhwc-tile-optimize 3.depthwise-conv-nhwc-hwc-optimize 4.batchmatmul-tile-optimize 5.batchmatmul-scf-optimize . Example mlir: batchmatmul conv2d_nhwc_fhwc depthwise_conv_2d_nhwc_hwc * [examples] add MLIRLinalg example for options: 1.conv-nhwc-fhwc-optimize 2.conv-nhwc-fhwc-tile-optimize 3.depthwise-conv-nhwc-hwc-optimize 4.batchmatmul-tile-optimize 5.batchmatmul-scf-optimize . Example mlir: batchmatmul conv2d_nhwc_fhwc depthwise_conv_2d_nhwc_hwc * Update .gitmodules * Update .gitignore * [Midend] Enhancements and Optimizations for batch matmul and convolution [Examples] Added MLIRLinalg Examples for Various Optimization Options * [Midend] Enhancements and Optimizations for batch matmul and convolution [Examples] Added MLIRLinalg Examples for Various Optimization Options. fixed thirdparty. * [Examples] Added MLIRLinalg Examples for Various Optimization Options. linalg-batch-matmul-dync.mlir fixed . --------- Signed-off-by: Avimitin <[email protected]> Co-authored-by: WuXintong123 <[email protected]> Co-authored-by: zhanghb97 <[email protected]> Co-authored-by: qingqing12138 <[email protected]> Co-authored-by: FloatingcloudKnight <[email protected]> Co-authored-by: FloatingcloudKnight <‘[email protected]’> Co-authored-by: Weijia <[email protected]> Co-authored-by: effrey-liu <[email protected]> Co-authored-by: Wu Xintong <[email protected]> Co-authored-by: Kiva <[email protected]> Co-authored-by: Taiqi Zheng <[email protected]> Co-authored-by: Jiongjia Lu <[email protected]> Co-authored-by: taiqzheng <[email protected]> Co-authored-by: ShiHaoGao <[email protected]>
- Loading branch information
1 parent
61de7a5
commit 94d7db2
Showing
152 changed files
with
68,143 additions
and
1,034 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ | |
|
||
# Clangd cache | ||
.cache | ||
|
||
# Clangd configurations | ||
.clangd |
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Python Virtual Environment Setup Guide for Buddy-mlir | ||
|
||
We recommend you to use anaconda3 to create python virtual environment. You should install python packages as buddy-mlir/requirements. | ||
|
||
```bash | ||
$ conda create -n <your virtual environment name> python=3.11 | ||
$ conda activate <your virtual environment name> | ||
$ cd buddy-mlir | ||
$ pip install -r requirements.txt | ||
``` |
Oops, something went wrong.