CUDA-oxide v0.5.0 with provably safe GPU kernels using Lean 4 verification NVIDIA's cuda-rust project released cuda-oxide v0.5.0, adding preview compile-time Lean 4 verification via a #[verify(...)] attribute that proves memory bounds, race freedom, barrier uniformity and async hardware lifecycle invariants over PostMem2Reg MIR, with zero per-kernel manual proofs. The release also ships native Windows x86_64-pc-windows-msvc host and device builds, OptiX and RTX shader compilation support, and CUTLASS 4.8.1 plus Vera Rubin sm_107a support in cute-rs-preview, alongside 10 verified safe_* examples including a zero-unsafe Blackwell tcgen05 GEMM. Proven slice and SharedArray mir.assert bounds checks are erased before lowering to PTX, and the release adds a cargo oxide lean-export command and a 45-pair GPU synchronization bug/fix verification suite. Repository navigation Provably safe GPU kernels with compile-time Lean 4 verification verify , preview , Windows x86 64 MSVC support, OptiX and RTX shader compilation support, and CUTLASS 4.8.1 + Vera Rubin sm 107a support in cute-rs-preview . Rust kernel + verify ... ──► PostMem2Reg MIR ──► Lean 4 Proofs 0 sorryAx │ ▼ proven mir.assert bounds checks elided Emitted PTX / Cubin Linux + Windows, CUDA + OptiX | Area | What Shipped in cuda-oxide v0.5.0 | |---|---| | Provably Safe Kernels | Compile-time Lean 4 proofs verify , preview + zero- unsafe GEMM | | Windows Support | Native x86 64-pc-windows-msvc host/device builds, COFF, and CI | | OptiX & RTX Support | Callable .func exports, 64-bit pointers, 256-input ptx asm | | Vera Rubin & Compiler Opts | CUTLASS 4.8.1 + sm 107a , local-array auto-unroll, DWARF fixes | 1. Provably Safe Kernels verify , Preview - Compile-time Lean 4 verification lean-exporter , oxide-proofs-preview : Annotate kernels with verify ... to prove memory bounds, race freedom, barrier uniformity, and async hardware lifecycle invariants at compile time over PostMem2Reg MIR no oob idx , no data race , disjoint writes , writes all elems , uniform barriers , tmem lifecycle with zero per-kernel manual proofs 1851 https://github.com/NVIDIA/cuda-rust/pull/1851 , 1857 https://github.com/NVIDIA/cuda-rust/pull/1857 , 1858 https://github.com/NVIDIA/cuda-rust/pull/1858 , 1859 https://github.com/NVIDIA/cuda-rust/pull/1859 , 1860 https://github.com/NVIDIA/cuda-rust/pull/1860 , 1861 https://github.com/NVIDIA/cuda-rust/pull/1861 , 1862 https://github.com/NVIDIA/cuda-rust/pull/1862 , 1866 https://github.com/NVIDIA/cuda-rust/pull/1866 , 1868 https://github.com/NVIDIA/cuda-rust/pull/1868 , 1877 https://github.com/NVIDIA/cuda-rust/pull/1877 , 1878 https://github.com/NVIDIA/cuda-rust/pull/1878 , 1881 https://github.com/NVIDIA/cuda-rust/pull/1881 , 1883 https://github.com/NVIDIA/cuda-rust/pull/1883 , 1884 https://github.com/NVIDIA/cuda-rust/pull/1884 , 1885 https://github.com/NVIDIA/cuda-rust/pull/1885 , 1887 https://github.com/NVIDIA/cuda-rust/pull/1887 , 1891 https://github.com/NVIDIA/cuda-rust/pull/1891 , 1892 https://github.com/NVIDIA/cuda-rust/pull/1892 , 1904 https://github.com/NVIDIA/cuda-rust/pull/1904 , 1905 https://github.com/NVIDIA/cuda-rust/pull/1905 , 1906 https://github.com/NVIDIA/cuda-rust/pull/1906 . - Zero- unsafe speed-of-light kernels & bounds-check elision : Proven slice and SharedArray mir.assert bounds checks are erased before lowering to emitted PTX. Ships with 10 verified safe examples, from 1D vector addition up to safe gemm sol final https://github.com/NVIDIA/cuda-rust/tree/main/cuda-oxide/examples/safe gemm sol final warp-specialized Blackwell tcgen05 + TMA + TMEM + 2-CTA cluster CLC + PDL GEMM with zero unsafe blocks 1851 https://github.com/NVIDIA/cuda-rust/pull/1851 , 1875 https://github.com/NVIDIA/cuda-rust/pull/1875 , 1893 https://github.com/NVIDIA/cuda-rust/pull/1893 . - Tooling & guide : Added cargo oxide lean-export , Lean 4 setup in nix develop and .devcontainer , a 45-pair GPU synchronization bug/fix verification suite, and the Verified Kernels chapter https://github.com/NVIDIA/cuda-rust/blob/main/cuda-oxide/cuda-oxide-book/gpu-safety/verified-kernels.md 1904 https://github.com/NVIDIA/cuda-rust/pull/1904 , 1906 https://github.com/NVIDIA/cuda-rust/pull/1906 . 2. Windows x86 64 MSVC Support - End-to-end Windows builds x86 64-pc-windows-msvc : Added native Windows host and device compilation, COFF object artifact embedding oxide-artifacts , shared CUDA Toolkit discovery cuda-toolkit-discovery , target-triple extra-rustflags selection in cargo-oxide , MSVC enum-type alignment in cuda-bindings , and PowerShell smoketest support 1473 https://github.com/NVIDIA/cuda-rust/pull/1473 , 1770 https://github.com/NVIDIA/cuda-rust/pull/1770 , 1828 https://github.com/NVIDIA/cuda-rust/pull/1828 . - Continuous verification & documentation : Added a dedicated Windows MSVC compile and PTX/cubin verification CI lane windows.yml and the Windows setup guide https://github.com/NVIDIA/cuda-rust/blob/main/cuda-oxide/cuda-oxide-book/getting-started/windows.md 1770 https://github.com/NVIDIA/cuda-rust/pull/1770 , 1870 https://github.com/NVIDIA/cuda-rust/pull/1870 . 3. OptiX & RTX Shader Compilation Support - Callable device exports device export , device export name = "..." : Root uncalled .visible .func device functions such as OptiX direct callable and continuation callable Shader Binding Table callables or C++ FFI callbacks alongside kernel entry points 1872 https://github.com/NVIDIA/cuda-rust/pull/1872 . - Wide inline PTX & named .const launch parameters : Extended ptx asm to support up to 256 input operands and 64 output operands covering OptiX 9 cooperative-vector intrinsics and preserved exact constant export name = "params" symbols inside cuda module 1871 https://github.com/NVIDIA/cuda-rust/pull/1871 . - Opt-in 64-bit addressing & named .global statics : Added short-pointers = false CUDA OXIDE NO SHORT PTR so OptiX continuation stacks keep 64-bit .local pointers %SPL , and honored no mangle / export name on device statics with evaluated const array lengths 1873 https://github.com/NVIDIA/cuda-rust/pull/1873 , 1874 https://github.com/NVIDIA/cuda-rust/pull/1874 . 4. cute-rs-preview , Compiler Optimizations & Debugging - CUTLASS 4.8.1 & Vera Rubin sm 107a : Upgraded cute-rs-preview to CUTLASS 4.8.1 and enabled Vera Rubin sm 107a BF16 and MXFP8 GEMM workloads 1849 https://github.com/NVIDIA/cuda-rust/pull/1849 , plus Option<&T niche storage and the cuda-device-diag-mlir22 static-analysis profile 1865 https://github.com/NVIDIA/cuda-rust/pull/1865 . - Loop unrolling, generic policies & intrinsics : Added automatic full unrolling for loops indexing small local arrays 1841 https://github.com/NVIDIA/cuda-rust/pull/1841 , generic policy expressions in launch bounds and unroll 1853 https://github.com/NVIDIA/cuda-rust/pull/1853 , sm 75 scalar arithmetic intrinsics 1907 https://github.com/NVIDIA/cuda-rust/pull/1907 , and GB10 sm 121a / R100 sm 107 target handling 1789 https://github.com/NVIDIA/cuda-rust/pull/1789 , 1830 https://github.com/NVIDIA/cuda-rust/pull/1830 . - DWARF debug info & build reliability : Coalesced DWARF debug sections with disambiguated labels in merge ptx bundles 1779 https://github.com/NVIDIA/cuda-rust/pull/1779 , preserved deeply nested and cycle-safe composite pointee debug types 1780 https://github.com/NVIDIA/cuda-rust/pull/1780 , 1781 https://github.com/NVIDIA/cuda-rust/pull/1781 , serialized concurrent pipeline output writes 1908 https://github.com/NVIDIA/cuda-rust/pull/1908 , and added CI template builds for cargo oxide new 1764 https://github.com/NVIDIA/cuda-rust/pull/1764 .