-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][Doc] Update address_cast specification (#12689)
This PR contains three improvements to the specification: - Default address_cast to no decoration. - Add overloads for generic multi_ptr. - Add address_space shorthands. This allows developers using generic raw pointers to cast to `multi_ptr` without worrying about decoration: ```c++ float* ptr = ...; auto mptr = syclex::static_address_cast<syclex::local_space>(ptr); ``` ...or to opt-in to decoration by using a generic multi-pointer, which propagates decoration information: ```c++ multi_ptr<float, syclex::generic_space, access::decorated::yes> decorated_in = ...; auto decorated_out = syclex::static_address_cast<syclex::local_space>(decorated_in); ``` --------- Signed-off-by: John Pennycook <john.pennycook@intel.com>
- Loading branch information
Showing
1 changed file
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters