-
Notifications
You must be signed in to change notification settings - Fork 81
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::buffer::set_final_data
is tested with std::shared_ptr
which is not required by the spec
#877
Comments
I agree that the spec is not clear and that there is a disconnect with the test suite. Looking at the DPC++ implementation, it seems that we allow The spec is also not clear about what type of We might also want to tighten up the specification to say that the output iterator must allow writing objects of type |
I think this is because at some point in the SYCL 1.2 specification there was some special handling for |
Implicit conversions happen only after template selection, though. The problem is that
If the user calls |
In the spec, the templated type
Destination
of the parameterfinalData
that is passed tosycl::buffer::set_final_data
is described as:In the buffer tests (specifically in this file, lines 66 and 69),
set_final_data
is also tested withDestination == std::weak_ptr<T[]>
andDestination == std::shared_ptr<T[]>
, and I don't think that these types are required as per the spec.So I think either the spec has to be extended or these test cases should be removed from the CTS (and a test case for
Destination == std::weak_ptr<T>
should be added).The text was updated successfully, but these errors were encountered: