-
Couldn't load subscription status.
- Fork 793
[SYCL] Update the kernel function pointer on function copy/move #20389
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
[SYCL] Update the kernel function pointer on function copy/move #20389
Conversation
The kernel function pointer, used to extract the kernel arguments, needs to point to the user provided function, or a function copy, if the copy/move is needed.
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.
LGTM, I verified this fix resolves observed issues of kernel argument capture with graph recording
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.
@mmichel11 We should also add your regression test, can do as a follow-up PR.
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.
Test is needed in this PR.
|
@intel/llvm-gatekeepers please consider merging |
#20420) - Follow-up test case to the bug fixed in #20389 which was not caught by SYCL graph tests. - Exercises graph recording over queue submissions with handlerless APIs. Queue submissions are recorded over a non-inlined function call to provide coverage over now resolved kernel argument capture issues.
The kernel function pointer, used to extract the kernel arguments, needs to point to the user provided function, or a function copy, if the copy/move is needed.