dpctl.compiler.SyclObjectKernelBundle¶
- class dpctl.compiler.SyclObjectKernelBundle¶
Wraps a
sycl::kernel_bundle<sycl::bundle_state::object>object.Obtained from
get_kernel_bundle()withstate="object",compile()andjoin(), and converted withlink().Methods
__init__()addressof_ref()Returns the address of the C API
DPCTLSyclObjectKernelBundleRefpointer as asize_t.get_device_images()Returns a tuple of the
SyclDeviceImageobjects of the kernel bundle.get_devices()Returns a tuple of the
dpctl.SyclDeviceobjects associated with the kernel bundle.get_kernel_ids()Returns a tuple of
SyclKernelIdobjects for the kernels in the kernel bundle.has_kernel(kernel_id[, device])Returns True if the kernel bundle contains the kernel, compatible with
deviceif one is given.Attributes
backendReturns the
backend_typeenum value of the kernel bundle.contains_specialization_constantsReturns True if any device image of the kernel bundle uses SYCL specialization constants.
is_emptyReturns True if the kernel bundle contains no device images.
native_specialization_constantReturns True if all SYCL specialization constants of the kernel bundle are native to the backend.
state"input","object"or"executable".sycl_contextReturns the
dpctl.SyclContextof the kernel bundle.