NVIDIA previews GPU kernel verification in CUDA-Oxide 0.5.0
Rust developers choose which memory and synchronization properties to check at build time. Unsupported operations stop compilation when verification is enabled.
NVIDIA released CUDA-Oxide 0.5.0 with an opt-in preview for verifying GPU kernels at compile time. Developers using the experimental Rust-to-CUDA compiler can choose which memory and synchronization properties Lean 4, a mathematical proof checker, must establish for an annotated kernel.
Developers list the checks in a #[verify(...)] attribute. The compiler translates supported instructions into Lean 4 and generates the conditions Lean has to prove. NVIDIA says compilation stops before the compiler emits PTX, CUDA’s intermediate code, if an annotated kernel contains an unsupported instruction or attribute, or if Lean cannot prove a requested property.
NVIDIA documents which operations the preview supports, including selected integer operations for indexing and control flow, shared memory, barriers that coordinate threads, two-block clusters, and Blackwell tcgen05 and Tensor Memory operations. The guide also shows selected asynchronous copies, scoped atomic operations and full-warp votes. NVIDIA says the verifier refused some kernels in its synchronization tests because they used inline PTX assembly or chose peer blocks dynamically in a ring buffer.
NVIDIA says the available memory checks cover buffer bounds, races in shared or global memory, whether different threads write to separate output slots and whether every output element gets written. Checking for races in a shared array also requires the barrier uniformity check.
The synchronization checks cover convergence at barriers and warp votes, uniform exits within a block, and Tensor Memory bounds, regions assigned to groups of warps and asynchronous ordering. NVIDIA limits each proof to the requested properties, with functional correctness, including floating-point formulas and rounding, outside its scope. When a proof depends on runtime conditions such as buffer lengths or launch dimensions, NVIDIA says the host checks those conditions before launching the kernel.
NVIDIA lists 10 verified examples in the release, from vector addition to a Blackwell matrix multiply. According to NVIDIA, building an annotated kernel requires Lean 4. Kernels without the attribute build without the verifier.
More news

AWS makes Rubin-powered EC2 P7 capacity generally available

NVIDIA CEO Jensen Huang arrives for closed-door House interview

Salesforce launches Missionforce Foundry for regulated organizations
