Skip to content

[Fix][TIR][Analysis] Reduction block checking alloc_buffers#14589

Merged
tqchen merged 1 commit intoapache:mainfrom
MasterJH5574:tvm-dev/2023-04-11-reduction-block
Apr 11, 2023
Merged

[Fix][TIR][Analysis] Reduction block checking alloc_buffers#14589
tqchen merged 1 commit intoapache:mainfrom
MasterJH5574:tvm-dev/2023-04-11-reduction-block

Conversation

@MasterJH5574
Copy link
Copy Markdown
Contributor

@MasterJH5574 MasterJH5574 commented Apr 11, 2023

Previously the check of reduction block did not take the intermediate allocated buffers (that is, the buffers in alloc_buffers field of a block) into consideration, which will lead to exception thrown during scheduling in cases of nested block + cache read/write.

This PR fixes this issue with one unit test for the DecomposeReduction primitive.

Credit of the fix goes to Bohan.

Co-authored-by: Bohan Hou spectrometerh@gmail.com

Previously the check of reduction block did not take the intermediate
allocated buffers (that is, the buffers in `alloc_buffers` field of a
block) into consideration, which will lead to exception thrown during
scheduling in cases of nested block + cache read/write.

This PR fixes this issue with one unit test for the DecomposeReduction
primitive.

Credit of the fix goes to Bohan.

Co-authored-by: Bohan Hou <spectrometerh@gmail.com>
@tvm-bot
Copy link
Copy Markdown
Collaborator

tvm-bot commented Apr 11, 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

MasterJH5574 added a commit to mlc-ai/relax that referenced this pull request Apr 11, 2023
…ers (apache/tvm#14589) (#188)

Previously the check of reduction block did not take the intermediate
allocated buffers (that is, the buffers in `alloc_buffers` field of a
block) into consideration, which will lead to exception thrown during
scheduling in cases of nested block + cache read/write.

This PR fixes this issue with one unit test for the DecomposeReduction
primitive.

Credit of the fix goes to Bohan.

Co-authored-by: Bohan Hou <spectrometerh@gmail.com>
@tqchen tqchen merged commit 1db4464 into apache:main Apr 11, 2023
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.

3 participants