dpctl.compiler.SyclObjectKernelBundle

class dpctl.compiler.SyclObjectKernelBundle

Wraps a sycl::kernel_bundle<sycl::bundle_state::object> object.

Obtained from get_kernel_bundle() with state="object", compile() and join(), and converted with link().

Methods

__init__()

addressof_ref()

Returns the address of the C API DPCTLSyclObjectKernelBundleRef pointer as a size_t.

get_device_images()

Returns a tuple of the SyclDeviceImage objects of the kernel bundle.

get_devices()

Returns a tuple of the dpctl.SyclDevice objects associated with the kernel bundle.

get_kernel_ids()

Returns a tuple of SyclKernelId objects for the kernels in the kernel bundle.

has_kernel(kernel_id[, device])

Returns True if the kernel bundle contains the kernel, compatible with device if one is given.

Attributes

backend

Returns the backend_type enum value of the kernel bundle.

contains_specialization_constants

Returns True if any device image of the kernel bundle uses SYCL specialization constants.

is_empty

Returns True if the kernel bundle contains no device images.

native_specialization_constant

Returns True if all SYCL specialization constants of the kernel bundle are native to the backend.

state

"input", "object" or "executable".

sycl_context

Returns the dpctl.SyclContext of the kernel bundle.