-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Texture support][Part 4] Add CollectStorageInfo and CollectBufferBinds relay passes for Adreno GPU #7689
Closed
csullivan
wants to merge
19
commits into
apache:main
from
csullivan:texture2d/graph_runtime_adreno_storage
Closed
[Texture support][Part 4] Add CollectStorageInfo and CollectBufferBinds relay passes for Adreno GPU #7689
csullivan
wants to merge
19
commits into
apache:main
from
csullivan:texture2d/graph_runtime_adreno_storage
Conversation
This file contains 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
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)
jroesch
added
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
status: need review
labels
Jan 19, 2022
Subsumed by #11878. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
status: need review
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=adreno
target.CollectStorageInfo
CollectBufferBinds
tvm::lower/build
via 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