Skip to content

Commit ea8a0e5

Browse files
[SYCL][Docs] Reintroduce device_ptr and host_ptr under namespace (#7814)
#7680 deprecated device_ptr and host_ptr under the sycl namespace and intended to add them under the sycl::ext::intel namespace instead, but did not. This commit adds them to the namespace as originally intended. They are already implemented in the extension headers. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 0f8914b commit ea8a0e5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

sycl/doc/extensions/supported/sycl_ext_intel_usm_address_spaces.asciidoc

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ This constructor may only be called from within a command.
154154

155155
=== Explicit Pointer Aliases
156156

157-
Add `device_ptr` and `host_ptr` aliases to the list of `multi_ptr` aliases as
158-
follows:
157+
Add `device_ptr`, `host_ptr`, `raw_device_ptr`, `raw_host_ptr`,
158+
`decorated_device_ptr`, and `decorated_host_ptr` aliases to the list of
159+
`multi_ptr` aliases as follows:
159160
```c++
160161
namespace sycl {
161162

@@ -176,6 +177,18 @@ using host_ptr =
176177
namespace ext {
177178
namespace intel {
178179

180+
template<typename ElementType,
181+
access::decorated IsDecorated = access::decorated::legacy>
182+
using device_ptr =
183+
multi_ptr<ElementType, access::address_space::ext_intel_global_device_space,
184+
IsDecorated>
185+
186+
template<typename ElementType,
187+
access::decorated IsDecorated = access::decorated::legacy>
188+
using host_ptr =
189+
multi_ptr<ElementType, access::address_space::ext_intel_global_host_space,
190+
IsDecorated>
191+
179192
template<typename ElementType>
180193
using raw_device_ptr =
181194
multi_ptr<ElementType, access::address_space::ext_intel_global_device_space,

0 commit comments

Comments
 (0)