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][Schedule] Support for specific consumer block targeting in cache_write #13510

Conversation

wrongtest-intellif
Copy link
Contributor

Hi, this change try add optional consumer_blocks param to cache_write symmetrically, following change on cache_read of #12505.

This is helpful when there are multiple consumers to the targeting block who also write to global output, and when we do cache_write, we may want to control some of the consumers read data reside on cache.

As a comparation, for s.cache_read(B, 0, "cache_scope", consumer_blocks=[B]):

image

For s.cache_write(P, 0, "cache_scope", consumer_blocks=[B])

image

cc @Hzfengsy @jwfromm

@tvm-bot
Copy link
Collaborator

tvm-bot commented Nov 29, 2022

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

@wrongtest-intellif wrongtest-intellif force-pushed the suppoer_cache_write_specifying_consumer branch from 97c4721 to 37bbda4 Compare December 10, 2022 06:50
@Hzfengsy Hzfengsy merged commit 9701103 into apache:main Dec 12, 2022
fzi-peccia pushed a commit to fzi-peccia/tvm that referenced this pull request Mar 27, 2023
…e_write (apache#13510)

Add optional consumer blocks to cache_write.
mikeseven pushed a commit to mikeseven/tvm that referenced this pull request Sep 27, 2023
…e_write (apache#13510)

Add optional consumer blocks to cache_write.
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.

None yet

3 participants