-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Implement sycl_khr_{static, dynamic}_addrspace_cast
extensions
#18521
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
Signed-off-by: Michael Aziz <[email protected]>
Close/reopen so CI runs with the latest changes, needed to fix build |
Signed-off-by: Michael Aziz <[email protected]>
Signed-off-by: Michael Aziz <[email protected]>
Thanks for the review, @dyniols. I've moved the macro definitions as suggested. Please let me know if you'd like me to make any other changes. |
Signed-off-by: Michael Aziz <[email protected]>
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!
@intel/llvm-reviewers-runtime, @sergey-semenov, friendly ping. |
template <access::address_space Space, typename ElementType> | ||
multi_ptr<ElementType, Space, access::decorated::no> | ||
dynamic_addrspace_cast(ElementType *ptr) { | ||
return ext::oneapi::experimental::dynamic_address_cast<Space>(ptr); |
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.
As an initial solution, I think we can roll with this, but optimally I would like us to flip this dependency eventually. We want this to replace the experimental
interfaces, so if we instead have those depend on this extension (which is stable) we can deprecate and remove the experimental ones without too much of a hassle.
Granted, it relies on this not being under the unfinished extension guard.
sycl_khr_{static, dynamic}_addrspace_cast
extensionssycl_khr_{static, dynamic}_addrspace_cast
extensions
Signed-off-by: Michael Aziz <[email protected]>
Implement the extensions defined in KhronosGroup/SYCL-Docs#650.