-
Notifications
You must be signed in to change notification settings - Fork 802
[SYCL] Forbid non-trivially-copyable type in annotated_ptr/ref class #11798
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
sycl/include/sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp
Outdated
Show resolved
Hide resolved
sycl/doc/extensions/experimental/sycl_ext_oneapi_annotated_ptr.asciidoc
Outdated
Show resolved
Hide resolved
Yes, I agree. However, I think the only other place there is an argument of type
In this case, shouldn't we add It seems inconsistent that |
You're right.
Yes. That's a bug introduced when we added those. |
sycl/doc/extensions/experimental/sycl_ext_oneapi_annotated_ptr.asciidoc
Outdated
Show resolved
Hide resolved
sycl/doc/extensions/experimental/sycl_ext_oneapi_annotated_ptr.asciidoc
Outdated
Show resolved
Hide resolved
sycl/include/sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp
Outdated
Show resolved
Hide resolved
steffenlarsen
left a comment
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.
Runtime changes LGTM. I'll let the other's approve the extensions changes.
sycl/include/sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp
Outdated
Show resolved
Hide resolved
bfff0e2 to
8d61708
Compare
sycl/include/sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp
Outdated
Show resolved
Hide resolved
|
@intel/llvm-gatekeepers Hi can you please help to merge this? Thanks! The CI error seems not related |
is already under investigation as per #12029 (comment). I think I've seen some discussion about as well. |
Explicitly state that use non-trivially-copyable type in annotated_ptr and annotated_ref is not supported and error out if annotated_ptr is constructed with non-trivially-copyable type
voidis allowed on annotated_ptr as an exceptionUse pass-by-value in annotated_ref operator= now, and updated the spec
this fix volatile type not supported in the following code