-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Add support for get_native for buffer and fix backend_return_t #5881
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
/verify with intel/llvm-test-suite#945 |
/verify with intel/llvm-test-suite#945 |
In #4952, we were concerned about breaking ABI / API compatibility when we changed the return type of |
@gmlueck Yes, I think we should apply the same logic |
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.
LGTM, but someone else should review
@s-kanaev could you please review? |
/verify with intel/llvm-test-suite#945 |
template <typename DataT, int Dimensions, typename AllocatorT> | ||
struct interop<backend::opencl, buffer<DataT, Dimensions, AllocatorT>> { | ||
using type = cl_mem; | ||
}; |
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.
Where is this type used? Is it needed?
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 seems it is not used anywhere. I removed it
Add support for sycl::get_native(sycl::buffer) accordingly to the spec.
Also, fixed backend_return_t for buffer for OpenCL backend.
Signed-off-by: mdimakov [email protected]