17°

Reels · 6 of 40

1:07

Reel · 1:07

CUDA in Rust vs CUDA C++: Rust wins by 3.2% until you check that they do not compute the same thing

In 67 seconds and narrated: the same Mandelbrot kernel in cuda-oxide, CUDA written in Rust, and in CUDA C++ on an RTX 4070 Ti SUPER. With default options Rust comes out 3.2% faster, but the two images differ in 27,510 pixels because each toolchain fuses different operations into FMA. With FMA off the outputs match bit for bit and Rust is 7% slower; the cause of the 3% is not established. Muted by default: turn the sound on in the controls.

Length
1:07
Published

RustCUDAGPUBenchmarksCompiladores

This reel sums up CUDA in Rust vs CUDA C++: Rust wins by 3.2% until you check that they do not compute the same thing, where the method, the tables and what did not work are.

Read the articleOpen in the viewer