cuda-oxide: cuda-oxide is an experimental Rust-to-CUDA compiler

12 points by rjzak


pta2002

It’s great they managed to avoid unsafe in the kernel launches. I guess that’s what you get when the kernel itself is also written in Rust though! This is one of the main usability issues in cudarc, which is crate that links CUDA libraries to rust. The fact that kernel launches are asynchronous and inherently unsafe due to being written in a different language (can’t tell you how many times I caused weird UB because of an incorrect number of arguments…) makes it really annoying to use.

Here’s hoping NVIDIA invests properly in this, and eventually brings something like thrust to Rust as well.

rjzak

This experimental backend allows for writing CUDA kernels in Rust more like how you'd write them in C. It compiles standard Rust code directly to PTX — no DSLs, no foreign language bindings, just Rust.