Skip to content

[TIR] Add merge primitive for TIR schedule#14398

Merged
wrongtest-intellif merged 1 commit intoapache:mainfrom
yincs-intellif:main
Apr 4, 2023
Merged

[TIR] Add merge primitive for TIR schedule#14398
wrongtest-intellif merged 1 commit intoapache:mainfrom
yincs-intellif:main

Conversation

@yincs-intellif
Copy link
Copy Markdown
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
Copy Markdown
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 yincs-intellif force-pushed the main branch 5 times, most recently from 7b9124b to 2c1bb3d Compare March 27, 2023 01:19
Comment thread src/tir/schedule/primitive/loop_transformation.cc Outdated
Comment thread src/tir/schedule/primitive/loop_transformation.cc Outdated
@yincs-intellif
Copy link
Copy Markdown
Contributor Author

@tvm-bot rerun

1 similar comment
@yincs-intellif
Copy link
Copy Markdown
Contributor Author

@tvm-bot rerun

@yincs-intellif
Copy link
Copy Markdown
Contributor Author

yincs-intellif commented Mar 29, 2023

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

@yincs-intellif
Copy link
Copy Markdown
Contributor Author

@tvm-bot rerun

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