| I am long sought after a CUDA or HIP compiler that target SPIR-V or DXIL. So that we can compile all thoes neural network kernels to almost all compute devices. The requirements are,
1. extend on C++17 this means template meta programming works
so that cub or cutlass/cute works 2. AOT 3. and no shitshow! The only thing that comes to close is circle[1]. - OpenCL is a no go, as it is purely C. And it is full of shitshow especially on Android devices. And the vendor drivers are the main source of shit, jit compile adds the other. - Vulkan+GLSL is a no go. The degree of shitness is on par with OpenCL due to driver and jit compiler. - slang[2] has the potential, but the meta programming part is not as strong as C++, existing libraries cannot be used. The above conclusion is drawn from my work on OpenCL EP for onnxruntime. And it purely is a nightmare to work with thoes drivers and jit compilers. Hopefully Vcc can take compute shader more seriously. [1]: https://www.circle-lang.org/ [2]: https://shader-slang.com/ [3]: https://github.com/microsoft/onnxruntime/tree/dev/opencl |
https://devblogs.microsoft.com/directx/opening-hlsl-planning...
https://devblogs.microsoft.com/directx/announcing-hlsl-2021/
At Vulkanised 2023 discussion round Khronos admited that they aren't going to improve GLSL any further, and ironicly rely on Microsoft's HLSL work as the main shader language to go alongside Vulkan.
Maybe there is something else discussed at Vulkanises 2024, but I doubt it.
There was some SYCL work to target Vulkan, but seems to have been a paper attempt and fizzled out.
https://dl.acm.org/doi/fullHtml/10.1145/3456669.3456683