From 0c470ac494e971cde631e7ae798de38f0b11bdac Mon Sep 17 00:00:00 2001 From: "marko.vucicevic" Date: Mon, 13 Nov 2023 10:14:37 +0100 Subject: [PATCH] Fixed review findings Issue: KHRGA_30 --- source/iface/command-accessor.rst | 53 +++++++++++++++++++------------ 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/source/iface/command-accessor.rst b/source/iface/command-accessor.rst index 1646749d..69154b71 100644 --- a/source/iface/command-accessor.rst +++ b/source/iface/command-accessor.rst @@ -41,23 +41,6 @@ Access targets * - ``target::host_task`` - Access a buffer from a host task. -============ -Member types -============ - -``accessor_ptr`` -================ - -:: - - template accessor_ptr - -If ``(AccessTarget == target::device): -multi_ptr.`` - -The definition of this type is not specified when -``(AccessTarget == target::host_task)``. - (constructors) ============== @@ -181,6 +164,19 @@ constructed ``id{}``. Deprecated in SYCL 2020. Use ``get_multi_ptr`` instead. +:: + + std::add_pointer_t get_pointer() const noexcept + +Available only when ``(AccessTarget == target::host_task)``. + +Returns a pointer to the start of this accessor’s underlying buffer, +even if this is a ranged accessor whose range does not start at +the beginning of the buffer. The return value +is unspecified if the accessor is empty. + +This function may only be called from within a command. + ``get_multi_ptr`` ================= @@ -215,11 +211,28 @@ Assignment to the single element that is accessed by this accessor. This function may only be called from within a command. +============ +Member types +============ + +``accessor_ptr`` +================ + +:: + + template accessor_ptr + +If ``(AccessTarget == target::device): +multi_ptr.`` + +The definition of this type is not specified when +``(AccessTarget == target::host_task)``. + .. _tags_buff_accessors: -============================= -Buffer command accessors tags -============================= +==================== +Buffer accessor tags +==================== Some ``accessor`` constructors take a ``TagT`` parameter, which is used to deduce template arguments.