The kernel_bundle class represents collection of device images in a particular state.
More...
#include <sycl/kernel.hpp>
template<bundle_state State>
class sycl::_V1::kernel_bundle< State >
The kernel_bundle class represents collection of device images in a particular state.
Definition at line 32 of file kernel.hpp.
◆ device_image_iterator
template<bundle_state State>
◆ kernel_bundle()
template<bundle_state State>
◆ begin()
template<bundle_state State>
◆ contains_specialization_constants()
template<bundle_state State>
◆ empty()
template<bundle_state State>
- Returns
- true if the kernel_bundles contains no device images
Definition at line 218 of file kernel_bundle.hpp.
◆ end()
template<bundle_state State>
◆ get_backend()
template<bundle_state State>
- Returns
- the backend associated with the kernel bundle
Definition at line 221 of file kernel_bundle.hpp.
◆ get_context()
template<bundle_state State>
◆ get_devices()
template<bundle_state State>
◆ get_kernel() [1/2]
template<bundle_state State>
template<typename KernelName , bundle_state _State = State, typename = std::enable_if_t<_State == bundle_state::executable>>
- Returns
- a kernel object which represents the kernel identified by KernelName.
Definition at line 290 of file kernel_bundle.hpp.
◆ get_kernel() [2/2]
template<bundle_state State>
template<bundle_state _State = State, typename = std::enable_if_t<_State == bundle_state::executable>>
◆ get_kernel_ids()
template<bundle_state State>
◆ get_specialization_constant()
template<bundle_state State>
template<auto & SpecName>
std::remove_reference_t<decltype(SpecName)>::value_type sycl::_V1::kernel_bundle< State >::get_specialization_constant |
( |
| ) |
const |
|
inline |
- Returns
- the value of the specialization constant whose address is SpecName for this kernel bundle.
Definition at line 317 of file kernel_bundle.hpp.
◆ has_kernel() [1/4]
template<bundle_state State>
template<typename KernelName >
- Returns
- true only if the kernel bundle contains the kernel identified by KernelName.
Definition at line 250 of file kernel_bundle.hpp.
◆ has_kernel() [2/4]
template<bundle_state State>
template<typename KernelName >
- Returns
- true only if the kernel bundle contains the kernel identified by KernelName and if that kernel is compatible with the device Dev.
Definition at line 257 of file kernel_bundle.hpp.
◆ has_kernel() [3/4]
template<bundle_state State>
◆ has_kernel() [4/4]
template<bundle_state State>
◆ has_specialization_constant()
template<bundle_state State>
template<auto & SpecName>
◆ native_specialization_constant()
template<bundle_state State>
- Returns
- true if all specialization constants which are used in the kernel_bundle are "native specialization constants in all device images
Definition at line 274 of file kernel_bundle.hpp.
◆ set_specialization_constant()
template<bundle_state State>
template<auto & SpecName, bundle_state _State = State, typename = std::enable_if_t<_State == bundle_state::input>>
void sycl::_V1::kernel_bundle< State >::set_specialization_constant |
( |
typename std::remove_reference_t< decltype(SpecName)>::value_type |
Value | ) |
|
|
inline |
Sets the value of the specialization constant whose address is SpecName for this bundle.
If the specialization constant’s value was previously set in this bundle, the value is overwritten.
Definition at line 306 of file kernel_bundle.hpp.
◆ detail::createSyclObjFromImpl
template<bundle_state State>
template<class T >
◆ get_native
template<bundle_state State>
template<backend Backend, bundle_state StateB>
The documentation for this class was generated from the following files: