[Texture support][Part 4] Add CollectStorageInfo and CollectBufferBinds relay passes for Adreno GPU #7689
Closed
csullivan wants to merge 19 commits intoapache:mainfrom
csullivan:texture2d/graph_runtime_adreno_storage
Closed
[Texture support][Part 4] Add CollectStorageInfo and CollectBufferBinds relay passes for Adreno GPU #7689csullivan wants to merge 19 commits intoapache:mainfrom csullivan:texture2d/graph_runtime_adreno_storage
csullivan wants to merge 19 commits intoapache:mainfrom
csullivan:texture2d/graph_runtime_adreno_storage
Conversation
only produces texture if all consumers support reading from texture.
primitives containing conv2d in NCHW4c/OIHW4o layout.
in adreno storage scope annotation (CollectStorageInfo).
Ensure that output is marked as global if single consumer requires global input. Previous legalization only ensured this if multiple consumers had differing storage requirements.
…provided texture buffers. Need to propagate this to allocated textures when cache_read(texture) is used for weights.
Note for now the Adreno impl. assumes the output storage types are uniform for multi-output nodes.
outputs to be global storage to avoid need for image row pitch calc.
- Max/Avg/Global Pooling - Concatenate - LayoutTransform (NCHW -> NCHW4c)
Contributor
Author
|
Subsumed by #11878. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a target specific implementation of CollectStorageInfo and CollectBufferBinds for the
opencl --device=adrenotarget.CollectStorageInfo
CollectBufferBinds
tvm::lower/buildvia the binds field. If the provided buffers have texture scope, the TIR TextureFlattening pass will handle lowering the multidimensional accesses to two dimensions.See RFC here: https://discuss.tvm.apache.org/t/rfc-texture-memory-support/9467