Skip to main content

3 posts tagged with "demo"

Demos

View All Tags

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.

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.