14 inline namespace _V1 {
17 assert((cgh.MQueue || cgh.MGraph) &&
18 "One of MQueue or MGraph should be nonnull!");
20 return cgh.MQueue->get_device();
22 return cgh.MGraph->getDevice();
29 int Dims,
int ElemSize,
int OffsetInBytes,
32 impl = std::shared_ptr<AccessorImplHost>(
35 false, OffsetInBytes, IsSubBuffer, PropertyList));
42 int Dims,
int ElemSize,
bool IsPlaceH,
43 int OffsetInBytes,
bool IsSubBuffer,
45 impl = std::shared_ptr<AccessorImplHost>(
48 IsPlaceH, OffsetInBytes, IsSubBuffer, PropertyList));
54 int Dims,
int ElemSize,
size_t OffsetInBytes,
57 impl = std::shared_ptr<AccessorImplHost>(
60 false, OffsetInBytes, IsSubBuffer, PropertyList));
66 int Dims,
int ElemSize,
bool IsPlaceH,
67 size_t OffsetInBytes,
bool IsSubBuffer,
69 impl = std::shared_ptr<AccessorImplHost>(
72 IsPlaceH, OffsetInBytes, IsSubBuffer, PropertyList));
83 return impl->MPropertyList;
90 return impl->MAccessRange;
93 return impl->MMemoryRange;
96 return const_cast<void *
>(
impl->MData);
110 impl = std::shared_ptr<LocalAccessorImplHost>(
122 char *ptr =
impl->MMem.data();
125 size_t val =
reinterpret_cast<size_t>(ptr);
126 if (val %
impl->MElemSize != 0) {
127 ptr +=
impl->MElemSize - val %
impl->MElemSize;
133 return impl->MPropertyList;
143 impl = std::make_shared<UnsampledImageAccessorImplHost>(
145 Pitch, ChannelType, ChannelOrder, PropertyList);
148 return impl->MAccessRange;
151 return impl->MPropertyList;
154 return impl->MSYCLMemObj;
157 return impl->MAccData;
161 return const_cast<void *
>(
impl->MData);
165 return impl->MElemSize;
169 return impl->MChannelType;
172 return impl->MChannelOrder;
180 impl = std::make_shared<SampledImageAccessorImplHost>(
182 ChannelType, ChannelOrder, Sampler, PropertyList);
185 return impl->MAccessRange;
188 return impl->MPropertyList;
191 return impl->MSYCLMemObj;
194 return impl->MAccData;
198 return const_cast<void *
>(
impl->MData);
202 return impl->MElemSize;
206 return impl->MChannelType;
209 return impl->MChannelOrder;
212 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.
device getDeviceFromHandler(handler &CommandGroupHandlerRef)
class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor class __SYCL_EBO __SYCL_SPECIAL_CLASS AccessMode
_Abi const simd< _Tp, _Abi > & noexcept