Local accessor. More...
#include <sycl/accessor.hpp>
Public Types | |
using | value_type = DataT |
using | reference = DataT & |
using | const_reference = const DataT & |
Public Member Functions | |
local_accessor_base () | |
template<int Dims = Dimensions, typename = std::enable_if_t<Dims == 0>> | |
local_accessor_base (handler &, const detail::code_location CodeLoc=detail::code_location::current()) | |
template<int Dims = Dimensions, typename = std::enable_if_t<Dims == 0>> | |
local_accessor_base (handler &, const property_list &propList, const detail::code_location CodeLoc=detail::code_location::current()) | |
template<int Dims = Dimensions, typename = std::enable_if_t<(Dims > 0)>> | |
local_accessor_base (range< Dimensions > AllocationSize, handler &, const detail::code_location CodeLoc=detail::code_location::current()) | |
template<int Dims = Dimensions, typename = std::enable_if_t<(Dims > 0)>> | |
local_accessor_base (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 = std::enable_if_t<(Dims > 0)>> | |
range< Dims > | get_range () const |
template<int Dims = Dimensions, typename = std::enable_if_t<Dims == 0 && (IsAccessAnyWrite || IsAccessReadOnly)>> | |
operator RefType () const | |
template<int Dims = Dimensions, typename = std::enable_if_t<(Dims > 0) && (IsAccessAnyWrite || IsAccessReadOnly)>> | |
RefType | operator[] (id< Dimensions > Index) const |
template<int Dims = Dimensions, typename = std::enable_if_t<Dims == 1 && (IsAccessAnyWrite || IsAccessReadOnly)>> | |
RefType | operator[] (size_t Index) const |
template<int Dims = Dimensions> | |
operator typename std::enable_if_t< Dims==0 &&AccessMode==access::mode::atomic, atomic< DataT, AS >> () const | |
template<int Dims = Dimensions> | |
std::enable_if_t<(Dims > 0) &&AccessMode==access::mode::atomic, atomic< DataT, AS > > | operator[] (id< Dimensions > Index) const |
template<int Dims = Dimensions> | |
std::enable_if_t< Dims==1 &&AccessMode==access::mode::atomic, atomic< DataT, AS > > | operator[] (size_t Index) const |
template<int Dims = Dimensions, typename = std::enable_if_t<(Dims > 1)>> | |
AccessorCommonT::template AccessorSubscript< Dims - 1, local_accessor_base< DataT, Dimensions, AccessMode, IsPlaceholder > > | operator[] (size_t Index) const |
bool | operator== (const local_accessor_base &Rhs) const |
bool | operator!= (const local_accessor_base &Rhs) const |
Public Member Functions inherited from sycl::_V1::detail::LocalAccessorBaseHost | |
LocalAccessorBaseHost (sycl::range< 3 > Size, int Dims, int ElemSize, const property_list &PropertyList={}) | |
sycl::range< 3 > & | getSize () |
const sycl::range< 3 > & | getSize () const |
void * | getPtr () |
void * | getPtr () const |
int | getNumOfDims () |
int | getElementSize () |
const property_list & | getPropList () const |
Protected Types | |
using | AccessorCommonT = detail::accessor_common< DataT, Dimensions, AccessMode, access::target::local, IsPlaceholder > |
template<int Dims> | |
using | AccessorSubscript = typename AccessorCommonT::template AccessorSubscript< Dims, local_accessor_base< DataT, Dimensions, AccessMode, IsPlaceholder > > |
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 > * |
Protected Types inherited from sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, access::target::local, IsPlaceholder > | |
using | RefType = detail::const_if_const_AS< AS, DataT > & |
using | ConstRefType = const DataT & |
using | PtrType = detail::const_if_const_AS< AS, DataT > * |
Protected Member Functions | |
local_accessor_base (const detail::LocalAccessorImplPtr &Impl) | |
PtrType | getQualifiedPtr () const |
void * | getPtr () |
void * | getPtr () const |
const range< 3 > & | getSize () const |
range< 3 > & | getSize () |
void | GDBMethodsAnchor () |
template<int Dims = AdjustedDim> | |
size_t | getLinearIndex (id< Dims > Id) const |
template<class Obj > | |
decltype(Obj::impl) friend | detail::getSyclObjImpl (const Obj &SyclObject) |
Protected Member Functions inherited from sycl::_V1::detail::LocalAccessorBaseHost | |
LocalAccessorBaseHost (const LocalAccessorImplPtr &Impl) | |
template<class Obj > | |
decltype(Obj::impl) friend | detail::getSyclObjImpl (const Obj &SyclObject) |
Protected Attributes | |
char | padding [sizeof(detail::LocalAccessorBaseDevice< AdjustedDim >)+sizeof(PtrType) - sizeof(detail::LocalAccessorBaseHost)] |
Protected Attributes inherited from sycl::_V1::detail::LocalAccessorBaseHost | |
LocalAccessorImplPtr | impl |
Static Protected Attributes | |
constexpr static int | AdjustedDim = Dimensions == 0 ? 1 : Dimensions |
static constexpr bool | IsAccessAnyWrite = AccessorCommonT::IsAccessAnyWrite |
static constexpr bool | IsAccessReadOnly = AccessorCommonT::IsAccessReadOnly |
static constexpr bool | IsConst = AccessorCommonT::IsConst |
Static Protected Attributes inherited from sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, access::target::local, IsPlaceholder > | |
constexpr static access::address_space | AS |
constexpr static bool | IsHostBuf |
constexpr static bool | IsHostTask |
constexpr static bool | IsPlaceH |
constexpr static bool | IsGlobalBuf |
constexpr static bool | IsConstantBuf |
constexpr static bool | IsAccessAnyWrite |
constexpr static bool | IsAccessReadOnly |
static constexpr bool | IsConst |
constexpr static bool | IsAccessReadWrite |
constexpr static bool | IsAccessAtomic |
Friends | |
template<typename DataT_ , int Dimensions_> | |
class | local_accessor |
template<class T > | |
T | detail::createSyclObjFromImpl (decltype(T::impl) ImplObj) |
Local accessor.
Definition at line 2738 of file accessor.hpp.
|
protected |
Definition at line 2747 of file accessor.hpp.
|
protected |
Definition at line 2760 of file accessor.hpp.
|
protected |
Definition at line 2765 of file accessor.hpp.
using sycl::_V1::local_accessor_base< DataT, Dimensions, AccessMode, IsPlaceholder >::const_reference = const DataT & |
Definition at line 2858 of file accessor.hpp.
|
protected |
Definition at line 2768 of file accessor.hpp.
using sycl::_V1::local_accessor_base< DataT, Dimensions, AccessMode, IsPlaceholder >::reference = DataT & |
Definition at line 2857 of file accessor.hpp.
|
protected |
Definition at line 2767 of file accessor.hpp.
using sycl::_V1::local_accessor_base< DataT, Dimensions, AccessMode, IsPlaceholder >::value_type = DataT |
Definition at line 2856 of file accessor.hpp.
|
inline |
Definition at line 2803 of file accessor.hpp.
|
inlineprotected |
Definition at line 2808 of file accessor.hpp.
|
inline |
Definition at line 2861 of file accessor.hpp.
|
inline |
Definition at line 2876 of file accessor.hpp.
|
inline |
Definition at line 2894 of file accessor.hpp.
|
inline |
Definition at line 2912 of file accessor.hpp.
|
inline |
Definition at line 2932 of file accessor.hpp.
|
protected |
|
inlineprotected |
Definition at line 2827 of file accessor.hpp.
|
inline |
Definition at line 2937 of file accessor.hpp.
|
inline |
Definition at line 2930 of file accessor.hpp.
|
inlineprotected |
Definition at line 2840 of file accessor.hpp.
|
inlineprotected |
Definition at line 2819 of file accessor.hpp.
References sycl::_V1::detail::LocalAccessorBaseHost::getPtr().
|
inlineprotected |
Definition at line 2820 of file accessor.hpp.
References sycl::_V1::detail::LocalAccessorBaseHost::getPtr().
|
inlineprotected |
Definition at line 2815 of file accessor.hpp.
References sycl::_V1::detail::LocalAccessorBaseHost::getPtr().
|
inlineprotected |
Definition at line 2824 of file accessor.hpp.
References sycl::_V1::detail::LocalAccessorBaseHost::getSize().
|
inlineprotected |
Definition at line 2821 of file accessor.hpp.
References sycl::_V1::detail::LocalAccessorBaseHost::getSize().
|
inline |
Definition at line 2944 of file accessor.hpp.
|
inline |
Definition at line 2964 of file accessor.hpp.
|
inline |
Definition at line 2999 of file accessor.hpp.
|
inline |
Definition at line 2996 of file accessor.hpp.
References sycl::_V1::detail::LocalAccessorBaseHost::impl.
|
inline |
Definition at line 2951 of file accessor.hpp.
References sycl::_V1::detail::getLinearIndex().
|
inline |
Definition at line 2974 of file accessor.hpp.
References sycl::_V1::detail::getLinearIndex().
|
inline |
Definition at line 2959 of file accessor.hpp.
|
inline |
Definition at line 2983 of file accessor.hpp.
|
inline |
Definition at line 2992 of file accessor.hpp.
|
inlinenoexcept |
Definition at line 2934 of file accessor.hpp.
|
friend |
|
friend |
Definition at line 2853 of file accessor.hpp.
|
staticconstexprprotected |
Definition at line 2745 of file accessor.hpp.
|
staticconstexprprotected |
Definition at line 2755 of file accessor.hpp.
|
staticconstexprprotected |
Definition at line 2756 of file accessor.hpp.
|
staticconstexprprotected |
Definition at line 2757 of file accessor.hpp.
|
protected |
Definition at line 2811 of file accessor.hpp.