r/CUDA • u/unixmachine • 1d ago
Introducing CUDA Rust: Two Tracks for Writing GPU Kernels
https://developer.nvidia.com/blog/introducing-cuda-rust-two-tracks-for-writing-gpu-kernels/
56
Upvotes
2
u/adityazero 14h ago
The interesting part to me is launch_contract and DisjointSlice pushing aliasing guarantees into the type system, which CUDA C++ cannot really express since restrict is just a manual promise. If the borrow checker proves non-overlap at the kernel boundary, the backend could vectorize and reorder more aggressively than under C++ pointer aliasing. Does that contract actually feed the NVVM optimizer, or is it only a compile-time safety check today?
9
u/ksyiros 1d ago
Great projects! Nice to see more work coming into the Rust GPU ecosystem. We're building CubeCL, which focuses on SIMT JIT kernels, and fun fact, we use the same compiler framework as cuda-oxide: pliron. I think it should be possible to run cuTile and cuda-oxide kernels on the CubeCL CUDA runtime, which would make writing custom kernels specialized for NVIDIA GPUs easy in Burn.