Skip to content

[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

Merged
merged 9 commits into from
Sep 22, 2020

Conversation

glyons-intel
Copy link
Contributor

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]

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);
Copy link
Contributor

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

smaslov-intel
smaslov-intel previously approved these changes Sep 3, 2020
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]>
smaslov-intel
smaslov-intel previously approved these changes Sep 9, 2020
Copy link
Contributor

@smaslov-intel smaslov-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@romanovvlad
Copy link
Contributor

@glyons-intel pre-commit testing has reported issues, please, fix.

Signed-off-by: Gail Lyons <[email protected]>
@againull againull merged commit 63cbae3 into intel:sycl Sep 22, 2020
glyons-intel added a commit that referenced this pull request Sep 23, 2020
…n the GlobalWorkOffset!=0. (#2410)"

This reverts commit 63cbae3.
bader pushed a commit that referenced this pull request Sep 23, 2020
…n the GlobalWorkOffset!=0. (#2410)" (#2523)

This reverts commit 63cbae3.
@glyons-intel glyons-intel deleted the glyons/offset branch October 28, 2020 19:17
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
…_eviction_and_caching

[L0] Fix cached and evicted timestamp recordings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants