Skip to content

How is rust-gpu related to the LLVM SPIR-V backend? #35

Closed Answered by Firestar99
Ekleog asked this question in Q&A
Discussion options

You must be logged in to vote

The LLVM SPIR-V backend (mostly) targets OpenCL, not vulkan. The confusing part is that they both share the same SPIR-V as a binary IR (intermediate representation), but with different capabilities allowing them to interact with the hardware very differently.
While officially they do have a vulkan target triple, if you look at the supported extensions, most of these are OpenCL-specific extensions not available in vulkan (hard to spot if you're not familiar with the space). So I'd expect their vulkan support to be very bare bones.
But feel free to have a look the few months old Vcc - the Vulkan Clang Compiler

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LegNeato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #33 on October 13, 2024 19:36.