Hacker Newsnew | past | comments | ask | show | jobs | submit | laggui's commentslogin

For compute shaders, you can already do this with CubeCL: https://github.com/tracel-ai/cubecl

You write kernels in a Rust DSL using #[cube], it supports WebGPU through WGSL and Vulkan through SPIR-V, along with CUDA, AMD via ROCm, and Metal. (disclosure: I am a contributor)


And to tie this back into GPU programming, Burn's backends use CubeCL, which lets you write compute kernels in a Rust DSL using #[cube], with a JIT compiler and autotuning machinery. It targets CUDA, AMD, Metal, Vulkan and WebGPU.

(disclosure: I am a contributor)


It's very cool. If Rust had comptime, apart from macros, it would be unmatched in capabilities.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: