I've found a guide on Offline Compilation of OpenCL Kernels into SPIR-V Using Open Source Tooling for clang
but I cannot find an official way to do this with other compilers.
Is there a way to transpile an OpenCL kernel into SPIR-V using CMake?
If no, is there another universal way to build the same OpenCL-containing project except writing custom scripts and call clang
on different operating systems (I'm especially interested in Linux and Windows)?
I saw that SPIR-V is designed for use by OpenCL 2.0+, but NVidia graphics cards support only OpenCL 1.2-. Will applications containing SPIR-V modules be working on NVidia graphics cards?