Skip to content

How does this relate to tracel-ai/cubecl #19

Closed Answered by schell
JackWolfard asked this question in Q&A
Discussion options

You must be logged in to vote

I can speak to this at least a bit, but I expect @eddyb and @LegNeato can elaborate. Having not used CubeCL myself I'm basing my comparison on their readme.

The big difference I see here is that rust-gpu compiles Rust code to SPIR-V. What this means is that it is runtime agnostic. If your runtime can interpret SPIR-V, then you can use rust-gpu to write your shaders/compute in Rust. Personally use wgpu for graphics work, but you can use Vulkan, Metal, DX - literally any "runtime" that accepts SPIR-V.

With rust-gpu you can use just about all the bells and whistles of no_std Rust (like importing external crates, defining types, traits, etc). rust-gpu accomplishes this by using a rustc compil…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LegNeato
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants