-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] group operations update to use size() #7589
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] group operations update to use size() #7589
Conversation
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.
It's alarming that something like this wasn't caught in our testing, we should close this gap.
Yeah, this is a little scary! I guess the byte size is always bigger than the size, so the loop is always big enough. It might write some extra memory, but nothing in the test checks against that... Good catch, @cperkinsintel. I agree with Sergey's suggestion to use the non-deprecated functions, but otherwise have nothing to add. |
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.
The fix LGTM, but it'll need to be followed up with a test.
…ction using sycl::vec<float>. Is sensitive to byte size vs. vector size fix in SYCL headers.
…1480) Test to follow up on recent fix intel/llvm#7589. Test performs a reduction using sycl::vec<float>. Is sensitive to byte size vs. vector size fix in SYCL headers.
…ntel/llvm-test-suite#1480) Test to follow up on recent fix intel#7589. Test performs a reduction using sycl::vec<float>. Is sensitive to byte size vs. vector size fix in SYCL headers.
get_size()
returns byte size. it issize()
that is wanted in these group operations.