dpctl.program

dpctl.program provides a way to create a SYCL kernel from either an OpenCL* program source code represented as a string or a SPIR-V binary file.

It implements creation of interoperability sycl::kernel_bundle<sycl::bundle_state_executable> (a collection of kernels), as well as creation of individual sycl::kernel, suitable for submission for execution via dpctl.SyclQueue.submit().

create_program_from_source

Creates a Sycl interoperability program from an OpenCL source string.

create_program_from_spirv

Creates a Sycl interoperability program from an SPIR-V binary.

SyclProgram

Wraps a sycl::kernel_bundle<sycl::bundle_state::executable> object created using SYCL interoperability layer with underlying backends.

SyclKernel

SyclProgramCompilationError

This exception is raised when a sycl::kernel_bundle could not be built from either a SPIR-V binary file or a string source.