Skip to content

Look into Vulkan shader compilers #331

Closed

Description

@VarLad

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.

Related to and depends on: #330 #311

Activity

  1. maleadt commented on Jun 20, 2025

    @maleadt
    Member

    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.

  2. VarLad commented on Jun 20, 2025

    @VarLad
    ContributorAuthor

    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 :)

  3. maleadt commented on Jun 20, 2025

    @maleadt
    Member

    Yeah, let's maybe move this to a discussion then.

  4. locked and limited conversation to collaborators on Jun 20, 2025
  5. converted this issue into a discussion #335 on Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions