We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug summary According to the latest sycl spec sycl::vec has constexpr constructors: https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:vector.type Implementation is missing constexpr:
sycl::vec
constexpr
AdaptiveCpp/include/hipSYCL/sycl/libkernel/vec.hpp
Line 305 in f577603
To Reproduce Try to compile constexpr sycl::vec<int, 3> vec = {1, 2, 3};
constexpr sycl::vec<int, 3> vec = {1, 2, 3};
Expected behavior sycl::vec should have constexpr constructor - no compiler errors for the expression above.
The text was updated successfully, but these errors were encountered:
Thanks for reporting. For triaging, is there any particular use case that this is blocking?
@DieGoldeneEnte @nilsfriess, wasn't there some work already done somewhere that addresses this?
Sorry, something went wrong.
Hi @illuhad, thank you for the reply, it is not a high priority as it can have a work-around, just a general alignment with sycl 2020.
Another place for example: sycl::accessor<...>::get_multi_ptr method
I think we only did it for marray. But this should require similar changes, I‘ll have a look.
marray
https://github.com/AdaptiveCpp/AdaptiveCpp/pull/778/files Was looked at for known identity iirc
nilsfriess
Successfully merging a pull request may close this issue.
Bug summary
According to the latest sycl spec
sycl::vec
has constexpr constructors: https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:vector.type Implementation is missingconstexpr
:AdaptiveCpp/include/hipSYCL/sycl/libkernel/vec.hpp
Line 305 in f577603
To Reproduce
Try to compile
constexpr sycl::vec<int, 3> vec = {1, 2, 3};
Expected behavior
sycl::vec
should have constexpr constructor - no compiler errors for the expression above.The text was updated successfully, but these errors were encountered: