-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][NVPTX] Emit 'grid_constant' annotations for by-val kernel params #14332
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
Conversation
- Adds a helper function for checking whether an argument is a [grid_constant](https://docs.nvidia.com/cuda/nvvm-ir-spec/index.html#supported-properties). - Adds support for cvta.param using changes from llvm/llvm-project#95289 - Supports escaped grid_constant pointers conservatively, by casting all uses to the generic address space with cvta.param.
d2233dd
to
d170880
Compare
… params Also fix up the DeadArgumentElimination passes to correctly preserve the annotations; when removing arguments from functions, dead parameters need pruned and alive ones may need their values shifted down by the number of dead arguments that came before them.
d170880
to
4a9216f
Compare
The commits will be squashed. If you don't want to wait for a pulldown, I recommend opening a separate PR with cherry-pick only. |
Seems like a massive waste of time to work around a bad policy. |
Oh, and the cherry picked commit is not by the present author, so unless that author joined this project and created that merge request, the authorship will be incorrect. I think it's best we maintain correct attribution of copyrights |
@premanandrao can you take a look at this? I am off till Wednesday. |
Yes it doesn't seem like the current system can correctly support cherry-picks in PRs without manual intervention. Either way, the commit we depend on has been merged as part of the pulldown, so this PR is unblocked in that regard. |
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.
FE changes LGTM.
@intel/llvm-gatekeepers this looks good to merge, thank you! |
Also fix up the
DeadArgumentElimination
passes to correctly preserve theannotations; when removing arguments from functions, dead parameters
need pruned and alive ones may need their values shifted down by the
number of dead arguments that came before them.