Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIR] Add merge primitive for TIR schedule #14398

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

yincs-intellif
Copy link
Contributor

During NPU schedule, we usually encounter multiple out graphs and need do loop partition on each out then compute at other block to the different out block. But current "compute_at" primitive can't handle it.

This PR add "merge" schedule primitive to merge different loops, when cut same tiles on different out blocks by "split" primitive, we can merge these out block under an outer loop, then other blocks can "compute_at" this loop normally.

cc @Hzfengsy @wrongtest-intellif

@tvm-bot
Copy link
Collaborator

tvm-bot commented Mar 24, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@yincs-intellif
Copy link
Contributor Author

@tvm-bot rerun

1 similar comment
@yincs-intellif
Copy link
Contributor Author

@tvm-bot rerun

@yincs-intellif
Copy link
Contributor Author

yincs-intellif commented Mar 29, 2023

@Hzfengsy Hi Siyuan, please help review this PR. Thanks very much!

@yincs-intellif
Copy link
Contributor Author

@tvm-bot rerun

include/tvm/tir/schedule/schedule.h Outdated Show resolved Hide resolved
src/tir/schedule/concrete_schedule.cc Outdated Show resolved Hide resolved
src/tir/schedule/primitive.h Outdated Show resolved Hide resolved
tests/python/unittest/test_tir_schedule_merge.py Outdated Show resolved Hide resolved
src/tir/schedule/primitive/loop_transformation.cc Outdated Show resolved Hide resolved
src/tir/schedule/primitive/loop_transformation.cc Outdated Show resolved Hide resolved
src/tir/schedule/primitive/loop_transformation.cc Outdated Show resolved Hide resolved
include/tvm/tir/schedule/schedule.h Outdated Show resolved Hide resolved
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.

4 participants