-
Notifications
You must be signed in to change notification settings - Fork 67
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::vec's load method does not specify any aligment requirements. #508
Comments
It's not clear to me what alignment restrictions there should be. I can see two possibilities:
I think your proposed spec change in #512 is attempting to specify option 2, correct? If we want option 2, I'm not sure we need to change the spec at all. The parameter to BTW, I don't understand the code snippet in your comment above. The pointer |
Hi Greg, Thanks for your reply. Nevertheless, I would still be of the opinion that the alignment of pointer that is being mentioned in the PR would be of value. A bit of background, when I was using the load/store function, I was under the impression that using Drawing a parallel to opencl's vloadn, it does mention the alignment requirement, and from that one can concur that it does not result in a vector load. Adding that statement would set the expectation of the function to the user. |
The description of
sycl::vec
's load method is as follows -It does mention any alignment requirements imposed on the pointer being passed to the load method. Thus the following code snippet, would be in harmony with the sycl-spec, which would result in an error when run on certain backends -
Similarly, the above example would hold true while using the
store
method as wellThe specification should mention alignment impositions on the pointer being passed, to avoid allowing illegal
The text was updated successfully, but these errors were encountered: