DPC++ Runtime
Runtime libraries for oneAPI Data Parallel C++
cl::sycl::device_image< State > Class Template Reference

Objects of the class represents an instance of an image in a specific state. More...

#include <CL/sycl/kernel_bundle.hpp>

Inheritance diagram for cl::sycl::device_image< State >:
Collaboration diagram for cl::sycl::device_image< State >:

Public Member Functions

 device_image ()=delete
 
bool has_kernel (const kernel_id &KernelID) const noexcept
 
bool has_kernel (const kernel_id &KernelID, const device &Dev) const noexcept
 
- Public Member Functions inherited from cl::sycl::detail::device_image_plain
 device_image_plain (const detail::DeviceImageImplPtr &Impl)
 
bool operator== (const device_image_plain &RHS) const
 
bool operator!= (const device_image_plain &RHS) const
 
bool has_kernel (const kernel_id &KernelID) const noexcept
 
bool has_kernel (const kernel_id &KernelID, const device &Dev) const noexcept
 
pi_native_handle getNative () const
 

Friends

template<class T >
T detail::createSyclObjFromImpl (decltype(T::impl) ImplObj)
 

Additional Inherited Members

- Protected Member Functions inherited from cl::sycl::detail::device_image_plain
template<class Obj >
decltype(Obj::impl) friend detail::getSyclObjImpl (const Obj &SyclObject)
 
- Protected Attributes inherited from cl::sycl::detail::device_image_plain
detail::DeviceImageImplPtr impl
 

Detailed Description

template<sycl::bundle_state State>
class cl::sycl::device_image< State >

Objects of the class represents an instance of an image in a specific state.

Definition at line 102 of file kernel_bundle.hpp.

Constructor & Destructor Documentation

◆ device_image()

template<sycl::bundle_state State>
cl::sycl::device_image< State >::device_image ( )
delete

Member Function Documentation

◆ has_kernel() [1/2]

template<sycl::bundle_state State>
bool cl::sycl::device_image< State >::has_kernel ( const kernel_id KernelID) const
inlinenoexcept
Returns
true if the device_image contains the kernel identified by the KernelID

Definition at line 108 of file kernel_bundle.hpp.

◆ has_kernel() [2/2]

template<sycl::bundle_state State>
bool cl::sycl::device_image< State >::has_kernel ( const kernel_id KernelID,
const device Dev 
) const
inlinenoexcept
Returns
true if the device_image contains the kernel identified by the KernelID and is compatible with the passed Dev

Definition at line 114 of file kernel_bundle.hpp.

Friends And Related Function Documentation

◆ detail::createSyclObjFromImpl

template<sycl::bundle_state State>
template<class T >
T detail::createSyclObjFromImpl ( decltype(T::impl)  ImplObj)
friend

The documentation for this class was generated from the following file: