Identifies an instance of the function object executing at each point in an nd_range. More...
#include <sycl/detail/helpers.hpp>
Public Member Functions | |
nd_item ()=delete | |
id< dimensions > | get_global_id () const |
size_t __SYCL_ALWAYS_INLINE | get_global_id (int dimension) const |
size_t __SYCL_ALWAYS_INLINE | get_global_linear_id () const |
id< dimensions > | get_local_id () const |
size_t __SYCL_ALWAYS_INLINE | get_local_id (int dimension) const |
size_t | get_local_linear_id () const |
group< dimensions > | get_group () const |
sub_group | get_sub_group () const |
size_t __SYCL_ALWAYS_INLINE | get_group (int dimension) const |
size_t __SYCL_ALWAYS_INLINE | get_group_linear_id () const |
range< dimensions > | get_group_range () const |
size_t __SYCL_ALWAYS_INLINE | get_group_range (int dimension) const |
range< dimensions > | get_global_range () const |
size_t | get_global_range (int dimension) const |
range< dimensions > | get_local_range () const |
size_t | get_local_range (int dimension) const |
id< dimensions > | get_offset () const |
nd_range< dimensions > | get_nd_range () const |
void | barrier (access::fence_space accessSpace=access::fence_space::global_and_local) const |
template<access::mode accessMode = access::mode::read_write> | |
void | mem_fence (typename detail::enable_if_t< accessMode==access::mode::read||accessMode==access::mode::write||accessMode==access::mode::read_write, access::fence_space > accessSpace=access::fence_space::global_and_local) const |
Executes a work-group mem-fence with memory ordering on the local address space, global address space or both based on the value of accessSpace . More... | |
template<typename dataT > | |
device_event | async_work_group_copy (local_ptr< dataT > dest, global_ptr< dataT > src, size_t numElements) const |
template<typename dataT > | |
device_event | async_work_group_copy (global_ptr< dataT > dest, local_ptr< dataT > src, size_t numElements) const |
template<typename dataT > | |
device_event | async_work_group_copy (local_ptr< dataT > dest, global_ptr< dataT > src, size_t numElements, size_t srcStride) const |
template<typename dataT > | |
device_event | async_work_group_copy (global_ptr< dataT > dest, local_ptr< dataT > src, size_t numElements, size_t destStride) const |
template<typename... eventTN> | |
void | wait_for (eventTN... events) const |
nd_item (const nd_item &rhs)=default | |
nd_item (nd_item &&rhs)=default | |
nd_item & | operator= (const nd_item &rhs)=default |
nd_item & | operator= (nd_item &&rhs)=default |
bool | operator== (const nd_item &rhs) const |
bool | operator!= (const nd_item &rhs) const |
Protected Member Functions | |
nd_item (const item< dimensions, true > &GL, const item< dimensions, false > &L, const group< dimensions > &GR) | |
Friends | |
class | detail::Builder |
Identifies an instance of the function object executing at each point in an nd_range.
Definition at line 33 of file helpers.hpp.
|
delete |
|
default |
|
default |
|
inlineprotected |
Definition at line 183 of file nd_item.hpp.
|
inline |
Definition at line 141 of file nd_item.hpp.
|
inline |
Definition at line 156 of file nd_item.hpp.
|
inline |
Definition at line 134 of file nd_item.hpp.
|
inline |
Definition at line 148 of file nd_item.hpp.
|
inline |
Definition at line 112 of file nd_item.hpp.
References __spirv_ControlBarrier(), sycl::_V1::detail::getSPIRVMemorySemanticsMask(), and __spv::Scope::Workgroup.
Referenced by sycl::_V1::detail::reduAuxCGFuncImplArrayHelper(), and sycl::_V1::detail::reduCGFuncImplArrayHelper().
|
inline |
Definition at line 40 of file nd_item.hpp.
Referenced by sycl::_V1::detail::writeNDItem().
|
inline |
Definition at line 42 of file nd_item.hpp.
References __SYCL_ASSUME_INT.
|
inline |
Definition at line 48 of file nd_item.hpp.
References __SYCL_ASSUME_INT.
Referenced by sycl::_V1::detail::reduAuxCGFunc().
|
inline |
Definition at line 92 of file nd_item.hpp.
|
inline |
Definition at line 94 of file nd_item.hpp.
|
inline |
Definition at line 68 of file nd_item.hpp.
|
inline |
Definition at line 72 of file nd_item.hpp.
References __SYCL_ASSUME_INT.
|
inline |
Definition at line 78 of file nd_item.hpp.
References __SYCL_ASSUME_INT.
Referenced by sycl::_V1::detail::reduAuxCGFunc(), sycl::_V1::detail::reduAuxCGFuncImplArrayHelper(), sycl::_V1::detail::reduAuxCGFuncImplScalar(), sycl::_V1::detail::reduCGFuncImplArrayHelper(), and sycl::_V1::detail::reduCGFuncImplScalar().
|
inline |
Definition at line 84 of file nd_item.hpp.
|
inline |
Definition at line 86 of file nd_item.hpp.
References __SYCL_ASSUME_INT.
|
inline |
Definition at line 54 of file nd_item.hpp.
Referenced by sycl::_V1::detail::writeNDItem().
|
inline |
Definition at line 56 of file nd_item.hpp.
References __SYCL_ASSUME_INT.
|
inline |
Definition at line 62 of file nd_item.hpp.
References __SYCL_ASSUME_INT.
Referenced by sycl::_V1::detail::doTreeReduction(), sycl::_V1::detail::reduAuxCGFunc(), sycl::_V1::detail::reduCGFuncImplArrayHelper(), and sycl::_V1::detail::reduCGFuncImplScalar().
|
inline |
Definition at line 98 of file nd_item.hpp.
Referenced by sycl::_V1::detail::doTreeReduction(), sycl::_V1::detail::reduAuxCGFunc(), sycl::_V1::detail::reduCGFuncImplArrayHelper(), and sycl::_V1::detail::reduCGFuncImplScalar().
|
inline |
Definition at line 100 of file nd_item.hpp.
|
inline |
Definition at line 107 of file nd_item.hpp.
|
inline |
Definition at line 105 of file nd_item.hpp.
|
inline |
Definition at line 70 of file nd_item.hpp.
|
inline |
Executes a work-group mem-fence with memory ordering on the local address space, global address space or both based on the value of accessSpace
.
Definition at line 123 of file nd_item.hpp.
|
inline |
Definition at line 179 of file nd_item.hpp.
|
default |
|
default |
|
inline |
Definition at line 174 of file nd_item.hpp.
|
inline |
Definition at line 162 of file nd_item.hpp.
|
friend |
Definition at line 182 of file nd_item.hpp.