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.
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
[Hexagon] Generalize builtin for Nd memory alloc with storage scope and add lowering for VTCM / Hexagon #10558
[Hexagon] Generalize builtin for Nd memory alloc with storage scope and add lowering for VTCM / Hexagon #10558
Changes from all commits
6bbe6cc
3cb0121
5365fab
8044dc0
82f61be
c1843ed
4cef769
f13cd4c
e9ef946
daac188
5ca8970
8cea1e1
05423ea
a96c062
0ecd017
2c1ee84
351b0af
0f37782
6678e14
1088c66
7de3ae0
794dbbf
c21b254
7b06e7c
bc372da
4ff6471
1c23651
7e43cd8
5132fd6
b28ff9c
3d28c59
47268c5
40b0dd5
10ee3a5
1645238
caed9f1
0f59317
520f517
b7d8dd0
c3a3b30
53ce1ee
412857c
38cd975
484cc7b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using a lambda for the body, can we move this to a separate function? It tends to make debugging easier later on, and becomes a template for a generalized function we can propose adding to
c_runtime_api.cc
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR creates a separate function called
AllocVtcmWorkspace
in the Hexagon Device API that is called from the lambda and which mirrorsAllocTextureWorkspace
in the OpenCL device API. These two APIs are the template for a more generalized Device API to "allocate a workspace with storage scope" but this should occur in a follow-up PR, in my opinion.Note that the lambda must construct
Device
andDLDataType
arguments forAllocVtcmWorkspace
from primitive types passed through the builtin before making the call toAllocVtcmWorkspace
.