wrongtest-intellif opened a new pull request, #13510: URL: https://github.com/apache/tvm/pull/13510
Hi, this change try add optional `consumer_blocks` param to `cache_write` symmetrically, following change on `cache_read` of https://github.com/apache/tvm/pull/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])`: <img width="404" alt="image" src="https://user-images.githubusercontent.com/7600935/204585844-1491d1a4-25c7-4aea-85b0-cb28e559a48b.png"> For `s.cache_write(P, 0, "cache_scope", consumer_blocks=[B])` <img width="394" alt="image" src="https://user-images.githubusercontent.com/7600935/204585955-a1338041-029d-4bda-857b-d50367fe9ed3.png"> cc @Hzfengsy @jwfromm -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
