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
Mesa's ZINK can output appropriate Vulkan SPIR-V from OpenCL (when using the bda backend)
These Vulkan shaders can be compiled to MSL, WGSL and HLSL by tools like SPIRV-Cross and Naga
It would be interesting to see if we can extend OpenCL.jl's compatibility even further using these tools.
What would that buy us over Rusticl+Zink? Without Rusticl, we'd need to use Vulkan APIs (or Metal APIs in your hypothetical Vulkan shard -> MSL), which seems like a step back.
Ah, my intention for this was primarily finding a way for OpenCL kernels to run directly on the web (in the browser) through compiling the Vulkan SPIRV Rusticl+Zink produce to WGSL. Primary usecase being writing functions in a Pluto that survive export to static HTML, for greater portability of Pluto notebooks.
Probably doesn't make sense as an OpenCL issue but web support does make sense for JuliaGPU as a whole in my opinion :)
Activity
maleadt commentedon Jun 20, 2025
What would that buy us over Rusticl+Zink? Without Rusticl, we'd need to use Vulkan APIs (or Metal APIs in your hypothetical Vulkan shard -> MSL), which seems like a step back.
VarLad commentedon Jun 20, 2025
Ah, my intention for this was primarily finding a way for OpenCL kernels to run directly on the web (in the browser) through compiling the Vulkan SPIRV Rusticl+Zink produce to WGSL. Primary usecase being writing functions in a Pluto that survive export to static HTML, for greater portability of Pluto notebooks.
Probably doesn't make sense as an OpenCL issue but web support does make sense for JuliaGPU as a whole in my opinion :)
maleadt commentedon Jun 20, 2025
Yeah, let's maybe move this to a discussion then.