Skip to content

Tile generator integration - #21

Merged
YWHyuk merged 6 commits into
developfrom
tile_generator_integration
Jan 30, 2024
Merged

YWHyuk merged 6 commits into
developfrom
tile_generator_integration

Conversation

@YWHyuk

@YWHyuk YWHyuk commented Jan 26, 2024

Copy link
Copy Markdown
Collaborator

Add Gemmini Lower pass and tile graph generation in the compile path.

Note that, to use GemminiLowerPass TORCHSIM_CUSTOM_PASS_PATH should be properly set

Check this PR @wok1909 @YunSunny00 @Geonwoo1998

@YWHyuk
YWHyuk force-pushed the tile_generator_integration branch 2 times, most recently from 68a0c58 to a957a8f Compare January 30, 2024 02:12
Tile graph generator is created is extension_codecache module.
Also, this commit fix some minor bugs

Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
Plus, add gemmini lowering path in the torch compile process.

Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
To pass the loop info and load/store data, data are written in
the temporary file and those values are passed to LLVMCodeCache

Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
To ease pasring the onnx graph, place the loop_index_node first

Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
To implement this, this commit moved global variable tile_row,
tile_col, tile_size into MatrixKernel.

Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
To determine whether tensor is used input or ouput, add extra metadata
- LLVM_ARG_IN: It means this tensor is used as input
- LLVM_ARG_OUT: It means this tensor is used as output
- LLVM_ARG_INOUT: It means this tensor is uses both input and output

Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
@YWHyuk
YWHyuk force-pushed the tile_generator_integration branch from 9729c76 to 4e2f1e8 Compare January 30, 2024 09:21
@YWHyuk
YWHyuk merged commit 1c2e4a8 into develop Jan 30, 2024
@YWHyuk
YWHyuk deleted the tile_generator_integration branch January 30, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant