-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Auto-Vectorize Feature | ||
|
||
## Usage | ||
|
||
- Add `-f auto_vectorize` to the command line arguments | ||
|
||
## TODOs: | ||
|
||
- [ ] Configure loop and basic block vectorizer individually. | ||
|
||
## Warning | ||
- Auto vectorization is enables by default (if available) on the following optimization levels: | ||
|
||
- GCC: `-O2` | ||
- LLVM: `-O1` | ||
|
||
## Configuration | ||
|
||
- `auto_vectorize.enable`: Allows to turn off ne auto-vectorization completely (Default: `true`) | ||
- `auto_vectorize.verbose`: Print details about auto vectorization possibilities during compililation. Need to check the MLID stdout artifact or enable `mlif.print_outputs` to be effective (Default: `false`) | ||
|
||
## Compatibility | ||
|
||
- Only RISC-V targets is supported at the momemt | ||
- The supported MLIF toolchains are GCC and LLVM | ||
- A VLEN larger equals 128 is required for this feature | ||
- It seems like this currently needs a ELEN=64 and proper alignment (e.g. `tvmaot.alignment_bytes=8`) for the backend data. TFLMI seems to break with this. |
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,2 @@ | ||
.. include:: AUTO_VECTORIZE.md | ||
:parser: myst_parser.sphinx_ |
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,2 @@ | ||
.. include:: MURISCVNNBYOC.md | ||
:parser: myst_parser.sphinx_ |