Local accessor. More...
#include <CL/sycl/accessor.hpp>
Public Types | |
using | value_type = DataT |
using | reference = DataT & |
using | const_reference = const DataT & |
Public Member Functions | |
template<int Dims = Dimensions, typename = detail::enable_if_t<Dims == 0>> | |
accessor (handler &, const detail::code_location CodeLoc=detail::code_location::current()) | |
template<int Dims = Dimensions, typename = detail::enable_if_t<Dims == 0>> | |
accessor (handler &, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current()) | |
template<int Dims = Dimensions, typename = detail::enable_if_t<(Dims > 0)>> | |
accessor (range< Dimensions > AllocationSize, handler &, const detail::code_location CodeLoc=detail::code_location::current()) | |
template<int Dims = Dimensions, typename = detail::enable_if_t<(Dims > 0)>> | |
accessor (range< Dimensions > AllocationSize, handler &, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current()) | |
size_t | get_size () const |
__SYCL2020_DEPRECATED ("get_count() is deprecated, please use size() instead") size_t get_count() const | |
size_t | size () const noexcept |
template<int Dims = Dimensions, typename = detail::enable_if_t<(Dims > 0)>> | |
range< Dims > | get_range () const |
template<int Dims = Dimensions, typename = detail::enable_if_t<Dims == 0 && IsAccessAnyWrite>> | |
operator RefType () const | |
template<int Dims = Dimensions, typename = detail::enable_if_t<(Dims > 0) && IsAccessAnyWrite>> | |
RefType | operator[] (id< Dimensions > Index) const |
template<int Dims = Dimensions, typename = detail::enable_if_t<Dims == 1 && IsAccessAnyWrite>> | |
RefType | operator[] (size_t Index) const |
template<int Dims = Dimensions> | |
operator typename detail::enable_if_t< Dims==0 &&AccessMode==access::mode::atomic, atomic< DataT, AS >> () const | |
template<int Dims = Dimensions> | |
detail::enable_if_t<(Dims > 0) &&AccessMode==access::mode::atomic, atomic< DataT, AS > > | operator[] (id< Dimensions > Index) const |
template<int Dims = Dimensions> | |
detail::enable_if_t< Dims==1 &&AccessMode==access::mode::atomic, atomic< DataT, AS > > | operator[] (size_t Index) const |
template<int Dims = Dimensions, typename = detail::enable_if_t<(Dims > 1)>> | |
AccessorCommonT::template AccessorSubscript< Dims - 1 > | operator[] (size_t Index) const |
local_ptr< DataT > | get_pointer () const |
bool | operator== (const accessor &Rhs) const |
bool | operator!= (const accessor &Rhs) const |
![]() | |
LocalAccessorBaseHost (sycl::range< 3 > Size, int Dims, int ElemSize) | |
sycl::range< 3 > & | getSize () |
const sycl::range< 3 > & | getSize () const |
void * | getPtr () |
void * | getPtr () const |
int | getNumOfDims () |
int | getElementSize () |
Protected Types | |
using | AccessorCommonT = detail::accessor_common< DataT, Dimensions, AccessMode, access::target::local, IsPlaceholder > |
template<int Dims> | |
using | AccessorSubscript = typename AccessorCommonT::template AccessorSubscript< Dims > |
using | ConcreteASPtrType = typename detail::DecoratedType< DataT, AS >::type * |
using | RefType = detail::const_if_const_AS< AS, DataT > & |
using | PtrType = detail::const_if_const_AS< AS, DataT > * |
![]() | |
using | RefType = detail::const_if_const_AS< AS, DataT > & |
using | ConstRefType = const DataT & |
using | PtrType = detail::const_if_const_AS< AS, DataT > * |
using | AccType = accessor< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, ext::oneapi::accessor_property_list<> > |
Protected Member Functions | |
PtrType | getQualifiedPtr () const |
template<int Dims = AdjustedDim> | |
size_t | getLinearIndex (id< Dims > Id) const |
![]() | |
template<class Obj > | |
decltype(Obj::impl) friend | getSyclObjImpl (const Obj &SyclObject) |
Protected Attributes | |
char | padding [sizeof(detail::LocalAccessorBaseDevice< AdjustedDim >)+sizeof(PtrType) - sizeof(detail::LocalAccessorBaseHost)] |
![]() | |
std::shared_ptr< LocalAccessorImplHost > | impl |
Static Protected Attributes | |
constexpr static int | AdjustedDim = Dimensions == 0 ? 1 : Dimensions |
![]() | |
constexpr static bool | IsPlaceH |
constexpr static access::address_space | AS |
constexpr static bool | IsHostBuf |
constexpr static bool | IsGlobalBuf |
constexpr static bool | IsConstantBuf |
constexpr static bool | IsAccessAnyWrite |
constexpr static bool | IsAccessReadOnly |
constexpr static bool | IsAccessReadWrite |
constexpr static bool | IsAccessAtomic |
Local accessor.
Definition at line 2018 of file accessor.hpp.
|
protected |
Definition at line 2030 of file accessor.hpp.
|
protected |
Definition at line 2036 of file accessor.hpp.
|
protected |
Definition at line 2038 of file accessor.hpp.
using cl::sycl::accessor< DataT, Dimensions, AccessMode, access::target::local, IsPlaceholder >::const_reference = const DataT & |
Definition at line 2090 of file accessor.hpp.
|
protected |
Definition at line 2041 of file accessor.hpp.
using cl::sycl::accessor< DataT, Dimensions, AccessMode, access::target::local, IsPlaceholder >::reference = DataT & |
Definition at line 2089 of file accessor.hpp.
|
protected |
Definition at line 2040 of file accessor.hpp.
using cl::sycl::accessor< DataT, Dimensions, AccessMode, access::target::local, IsPlaceholder >::value_type = DataT |
Definition at line 2088 of file accessor.hpp.
|
inline |
Definition at line 2093 of file accessor.hpp.
|
inline |
Definition at line 2106 of file accessor.hpp.
|
inline |
Definition at line 2122 of file accessor.hpp.
|
inline |
Definition at line 2137 of file accessor.hpp.
|
inline |
Definition at line 2156 of file accessor.hpp.
|
inline |
Definition at line 2213 of file accessor.hpp.
|
inline |
Definition at line 2161 of file accessor.hpp.
|
inline |
Definition at line 2154 of file accessor.hpp.
|
inlineprotected |
Definition at line 2080 of file accessor.hpp.
|
inlineprotected |
Definition at line 2073 of file accessor.hpp.
|
inline |
Definition at line 2167 of file accessor.hpp.
|
inline |
Definition at line 2186 of file accessor.hpp.
|
inline |
Definition at line 2218 of file accessor.hpp.
|
inline |
Definition at line 2217 of file accessor.hpp.
|
inline |
Definition at line 2173 of file accessor.hpp.
References cl::sycl::detail::getLinearIndex().
|
inline |
Definition at line 2194 of file accessor.hpp.
References cl::sycl::detail::getLinearIndex().
|
inline |
Definition at line 2180 of file accessor.hpp.
|
inline |
Definition at line 2203 of file accessor.hpp.
|
inline |
Definition at line 2209 of file accessor.hpp.
|
inlinenoexcept |
Definition at line 2158 of file accessor.hpp.
|
staticconstexprprotected |
Definition at line 2026 of file accessor.hpp.
|
protected |
Definition at line 2070 of file accessor.hpp.