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.Public methods:
Returns the address of the C API DPCTLSyclKernelBundleRef pointer as a long.
get_sycl_kernel
(kernel_name)has_sycl_kernel
(kernel_name)
Public methods
- dpctl.program.SyclProgram.addressof_ref(self)
Returns the address of the C API DPCTLSyclKernelBundleRef pointer as a long.
- Returns:
The address of the
DPCTLSyclKernelBundleRef
pointer used to create thisdpctl.SyclProgram
object cast to asize_t
.
- dpctl.program.SyclProgram.get_sycl_kernel(self, kernel_name)
- dpctl.program.SyclProgram.has_sycl_kernel(self, kernel_name)