You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Level Zero support for program compilation for dpctl #210
dpctl program interface only supports OpenCL. To improve the situation, we need to support compiling kernels from Spir-V IL (Numba will be the primary consumer of this feature) and possibly from source files.
DPC++ does not yet provide a way to create a SYCL program from a SPIR-V IL, the feature is intended as a future enhancement. For this reason, dpctl needs to first generate an interoperability program and then create a SYCL program object from it. We already do this for OpenCL:
Building a level zero module has some differences with the compilation process of OpenCL programs. There are some extra options that can be passed in as module descriptions. One of the key module description attributes is Specialization Constants. These are run-time (host program execution) generated values that are constant during the compilation of the module. Typically, specialization constants are used to pass hardware-specific information, e.g., block-size, to the online compiler. Reference for further details https://github.com/intel/llvm/blob/81963d1ec055154bed2428a6232135d06891a53c/sycl/doc/SpecializationConstants.md
Activity
diptorupd commentedon Dec 9, 2020
Building a level zero module has some differences with the compilation process of OpenCL programs. There are some extra options that can be passed in as module descriptions. One of the key module description attributes is
Specialization Constants. These are run-time (host program execution) generated values that are constant during the compilation of the module. Typically, specialization constants are used to pass hardware-specific information, e.g., block-size, to the online compiler. Reference for further details https://github.com/intel/llvm/blob/81963d1ec055154bed2428a6232135d06891a53c/sycl/doc/SpecializationConstants.mddiptorupd commentedon Jan 21, 2021
Closed by #241
diptorupd commentedon Jan 23, 2021
Completed after merging #241.