-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] [L0 PI] Added an assert to piEnqueueKernelLaunch() when the GlobalWorkOffset!=0. #2410
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
GlobalWorkOffset is not currently supported in Level Zero. Now the function will assert if someone tries to use it. Signed-off-by: Gail Lyons <[email protected]>
@@ -2614,6 +2614,7 @@ piEnqueueKernelLaunch(pi_queue Queue, pi_kernel Kernel, pi_uint32 WorkDim, | |||
assert(Kernel); | |||
assert(Queue); | |||
assert((WorkDim > 0) && (WorkDim < 4)); | |||
assert(GlobalWorkOffset[0] == 0); |
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.
Why don't you check the other dimensions too? And also it can be NULL (actually I expect it to be NULL most of times). See here for the semantics of this argument: https://www.khronos.org/registry/OpenCL/sdk/2.2/docs/man/html/clEnqueueNDRangeKernel.html
Signed-off-by: Gail Lyons <[email protected]>
Signed-off-by: Gail Lyons <[email protected]>
The global work offset is not supported on level zero today. I am adding an assertion to piEnqueueKernelLaunch() to catch when the global work offset is not zero. This test uses the global work offset, so I am indicating that it will fail. Signed-off-by: Gail Lyons <[email protected]>
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
@glyons-intel pre-commit testing has reported issues, please, fix. |
Signed-off-by: Gail Lyons <[email protected]>
Signed-off-by: Gail Lyons <[email protected]>
…_eviction_and_caching [L0] Fix cached and evicted timestamp recordings
GlobalWorkOffset is not currently supported in Level Zero.
Now the function will assert if someone tries to use it.
Signed-off-by: Gail Lyons [email protected]