15 inline namespace _V1 {
19 "One of MQueue or MGraph should be nonnull!");
21 return cgh.MQueue->get_device();
29 int Dims,
int ElemSize,
size_t OffsetInBytes,
32 impl = std::shared_ptr<AccessorImplHost>(
35 false, OffsetInBytes, IsSubBuffer, PropertyList));
41 int Dims,
int ElemSize,
bool IsPlaceH,
42 size_t OffsetInBytes,
bool IsSubBuffer,
44 impl = std::shared_ptr<AccessorImplHost>(
47 IsPlaceH, OffsetInBytes, IsSubBuffer, PropertyList));
58 return impl->MPropertyList;
65 return impl->MAccessRange;
68 return impl->MMemoryRange;
71 return const_cast<void *
>(
impl->MData);
85 impl = std::shared_ptr<LocalAccessorImplHost>(
97 char *ptr =
impl->MMem.data();
100 size_t val =
reinterpret_cast<size_t>(ptr);
101 if (val %
impl->MElemSize != 0) {
102 ptr +=
impl->MElemSize - val %
impl->MElemSize;
108 return impl->MPropertyList;
118 impl = std::make_shared<UnsampledImageAccessorImplHost>(
120 Pitch, ChannelType, ChannelOrder, PropertyList);
123 return impl->MAccessRange;
126 return impl->MPropertyList;
129 return impl->MSYCLMemObj;
132 return impl->MAccData;
136 return const_cast<void *
>(
impl->MData);
140 return impl->MElemSize;
144 return impl->MChannelType;
147 return impl->MChannelOrder;
155 impl = std::make_shared<SampledImageAccessorImplHost>(
157 ChannelType, ChannelOrder, Sampler, PropertyList);
160 return impl->MAccessRange;
163 return impl->MPropertyList;
166 return impl->MSYCLMemObj;
169 return impl->MAccData;
173 return const_cast<void *
>(
impl->MData);
177 return impl->MElemSize;
181 return impl->MChannelType;
184 return impl->MChannelOrder;
187 return impl->MSampler;
The file contains implementations of accessor class.
range< 3 > & getMemoryRange()
unsigned int getElemSize() const
void * getMemoryObject() const
bool isPlaceholder() const
const property_list & getPropList() const
detail::AccHostDataT & getAccData()
range< 3 > & getAccessRange()
AccessorBaseHost(const AccessorImplPtr &Impl)
bool isMemoryObjectUsedByGraph() const
const property_list & getPropList() const
LocalAccessorBaseHost(const LocalAccessorImplPtr &Impl)
sycl::range< 3 > & getSize()
LocalAccessorImplPtr impl
image_channel_type getChannelType() const
const sycl::range< 3 > & getSize() const
SampledImageAccessorImplPtr impl
const property_list & getPropList() const
image_sampler getSampler() const
image_channel_order getChannelOrder() const
int getElementSize() const
detail::AccHostDataT & getAccData()
SampledImageAccessorBaseHost(const SampledImageAccessorImplPtr &Impl)
void * getMemoryObject() const
UnsampledImageAccessorBaseHost(const UnsampledImageAccessorImplPtr &Impl)
image_channel_type getChannelType() const
detail::AccHostDataT & getAccData()
int getElementSize() const
const sycl::range< 3 > & getSize() const
UnsampledImageAccessorImplPtr impl
void * getMemoryObject() const
const property_list & getPropList() const
image_channel_order getChannelOrder() const
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
Command group handler class.
Objects of the property_list class are containers for the SYCL properties.
decltype(Obj::impl) const & getSyclObjImpl(const Obj &SyclObject)
device getDeviceFromHandler(handler &CommandGroupHandlerRef)
class __SYCL_EBO __SYCL_SPECIAL_CLASS AccessMode
_Abi const simd< _Tp, _Abi > & noexcept