dpctl.program.SyclProgram

class dpctl.program.SyclProgram

Wraps a sycl::kernel_bundle<sycl::bundle_state::executable> object created using SYCL interoperability layer with underlying backends. Only the OpenCL and Level-Zero backends are currently supported.

SyclProgram exposes the C API from dpctl_sycl_kernel_bundle_interface.h. A SyclProgram can be created from either a source string or a SPIR-V binary file.

Methods

__init__()

addressof_ref()

Returns the address of the C API DPCTLSyclKernelBundleRef pointer as a long.

get_sycl_kernel(kernel_name)

has_sycl_kernel(kernel_name)