-
Notifications
You must be signed in to change notification settings - Fork 787
[UR][CUDA][HIP] Fix Set Arg Local #10710
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
Merged
steffenlarsen
merged 1 commit into
intel:sycl
from
veselypeta:petr/fix-cuda-set-arg-local
Aug 25, 2023
Merged
[UR][CUDA][HIP] Fix Set Arg Local #10710
steffenlarsen
merged 1 commit into
intel:sycl
from
veselypeta:petr/fix-cuda-set-arg-local
Aug 25, 2023
Conversation
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
1a1721d
to
291dcb3
Compare
291dcb3
to
2529422
Compare
2529422
to
bd75f00
Compare
jchlanda
approved these changes
Aug 10, 2023
CUDA/HIP 👍 |
Ping @intel/dpcpp-l0-pi-reviewers can we get a review on this? |
smaslov-intel
approved these changes
Aug 18, 2023
jandres742
approved these changes
Aug 21, 2023
bd75f00
to
a7653f3
Compare
@intel/llvm-gatekeepers can this be merged? |
veselypeta
added a commit
to veselypeta/llvm
that referenced
this pull request
Sep 21, 2023
In the CUDA/HIP adapters `urKernelSetArgValue` was being used to implement both `urKernelSetArgValue` & `urKernelSetArgLocal`. However, if the validation layer is enabled in UR then the path to set local arg is never taken since it includes a check that `pArgValue` is not null. This PR: * Implements `urKernelSetArgLocal` for CUDA/HIP adapters * Changes `pi2ur` to call `urKernelSetArgLocal` when `arg_value` is `nullptr` * Implements `urKernelSetArgLocal` for L0 adapter - this just calls back into `urKernelSetArgValue`.
fabiomestre
pushed a commit
to fabiomestre/llvm
that referenced
this pull request
Sep 26, 2023
In the CUDA/HIP adapters `urKernelSetArgValue` was being used to implement both `urKernelSetArgValue` & `urKernelSetArgLocal`. However, if the validation layer is enabled in UR then the path to set local arg is never taken since it includes a check that `pArgValue` is not null. This PR: * Implements `urKernelSetArgLocal` for CUDA/HIP adapters * Changes `pi2ur` to call `urKernelSetArgLocal` when `arg_value` is `nullptr` * Implements `urKernelSetArgLocal` for L0 adapter - this just calls back into `urKernelSetArgValue`.
veselypeta
added a commit
to veselypeta/llvm
that referenced
this pull request
Sep 28, 2023
In the CUDA/HIP adapters `urKernelSetArgValue` was being used to implement both `urKernelSetArgValue` & `urKernelSetArgLocal`. However, if the validation layer is enabled in UR then the path to set local arg is never taken since it includes a check that `pArgValue` is not null. This PR: * Implements `urKernelSetArgLocal` for CUDA/HIP adapters * Changes `pi2ur` to call `urKernelSetArgLocal` when `arg_value` is `nullptr` * Implements `urKernelSetArgLocal` for L0 adapter - this just calls back into `urKernelSetArgValue`.
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.
In the CUDA/HIP adapters
urKernelSetArgValue
was being used to implement bothurKernelSetArgValue
&urKernelSetArgLocal
. However, if the validation layer is enabled in UR then the path to set local arg is never taken since it includes a check thatpArgValue
is not null.This PR:
urKernelSetArgLocal
for CUDA/HIP adapterspi2ur
to callurKernelSetArgLocal
whenarg_value
isnullptr
urKernelSetArgLocal
for L0 adapter - this just calls back intourKernelSetArgValue
.