Skip to main content

Porting GPU shaders to Rust 30x faster with AI

· 15 min read
Christian Legnitto
Rust GPU and Rust CUDA maintainer

I used AI to port virtually all of the shaders from Sascha Willems' popular Vulkan sample repo over to Rust using Rust GPU. This demonstrates Rust GPU is ready for production use.

With AI handling most of the codegen and me reviewing and tweaking the results, the port took about four days of part-time work—a 30x speedup compared to Sascha's manual port to Slang.

Rebooting the Rust CUDA project

· 4 min read
Christian Legnitto
Rust GPU and Rust CUDA maintainer

We're excited to announce the reboot of the Rust CUDA project. Rust CUDA enables you to write and run CUDA kernels in Rust, executing directly on NVIDIA GPUs using NVVM IR.

Our immediate focus is on modernizing the project and integrating with other GPU-related efforts in the Rust ecosystem.

To follow along or get involved, check out the rust-cuda repo on GitHub.

Optimizing a Rust GPU matmul kernel

· 18 min read
Christian Legnitto
Rust GPU and Rust CUDA maintainer

I read the excellent post Optimizing a WebGPU Matmul Kernel for 1TFLOP+ Performance by Zach Nussbaum and thought it might be fun to reimplement it with Rust GPU.

We'll follow Zach's original post closely, comparing and contrasting using Rust vs the WGSL and Typescript from his post.

At the end, I'll show some unique benefits of using Rust on the GPU.

Rust GPU Transitions to Community Ownership

· 8 min read
Christian Legnitto
Rust GPU and Rust CUDA maintainer
EddyB
EddyB
Rust GPU maintainer

We are excited to announce that as of today the Rust GPU project will be transitioning from Embark Studios to community ownership under the Rust GPU GitHub organization. This move marks the beginning of a broader strategy aimed at revitalizing, unifying, and standardizing GPU programming in Rust. We are eager to share more details in the near future but in the meantime if you are a maintainer of a GPU-related Rust project, please reach out!