NVIDIA released cuda-oxide: a compiler for Rust code on GPUs

NVIDIA released cuda-oxide v0.1.0, a Rust compiler for CUDA kernels. The tool compiles annotated functions directly into PTX through a transformation pipeline. A single cargo oxide build command compiles both host and device at the same time.

AI-processed from MarkTechPost; edited by Hamidun News
NVIDIA released cuda-oxide: a compiler for Rust code on GPUs
Source: MarkTechPost. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceMarkTechPost ↗
Editor-in-Chief
Key metric #1SIMT programming (Single-Instruction Multiple-Thread) becomes more accessible
Key metric #2Single tooling ecosystem — Cargo works with all targets the same way
Key metric #3Memory-safety guarantees even for GPU code

NVIDIA opened the source code for cuda-oxide — an experimental compiler that transforms Rust functions directly into CUDA GPU code. Until now, GPU application developers had to choose between the convenience of Rust and the performance of CUDA.

How It Works

cuda-oxide is a custom backend for the rustc compiler. It takes functions annotated with #[kernel] and runs them through a transformation chain: Rust → Stable MIR → Pliron IR → LLVM IR → PTX (Parallel Thread Execution, machine code for NVIDIA GPU). The main feature: developers write code once. A single `cargo oxide build` command compiles both the CPU part (host) and the GPU part (device). Previously, you had to mix Rust for the host and C/CUDA for the kernels.

Why This Matters

Rust on GPU is the holy grail for developers. CUDA has historically been tied to C/C++. Rust offers memory safety without garbage collection, which is critical for high-performance computing.

  • SIMT programming (Single-Instruction Multiple-Thread) becomes more accessible
  • Single tooling ecosystem — Cargo works with all targets the same way
  • Memory-safety guarantees even for GPU code
  • Easier integration of CUDA into existing Rust projects
  • Reduces the boundary between host language and kernel language

cuda-oxide v0.1.0 is the first step. The tool is experimental, so production deployments may have limitations and bugs.

What This Means

NVIDIA is investing in the Rust ecosystem for GPU computing. This signals that the world is moving away from mandatory C/C++ for parallel computing. If cuda-oxide reaches a production version, it could become the standard for new CUDA projects in Rust and change the landscape of GPU development.

Story

Key Questions Answered

How It Works?

cuda-oxide is a custom backend for the rustc compiler. It takes functions annotated with #[kernel] and runs them through a transformation chain: Rust → Stable MIR → Pliron IR → LLVM IR → PTX (Parallel Thread Execution, machine code for NVIDIA GPU). The main feature: developers write code once. A single `cargo oxide build` command compiles both the CPU part (host) and the GPU part (device). Previously, you had to mix Rust for the host and C/CUDA for the kernels.

Why This Matters?

Rust on GPU is the holy grail for developers. CUDA has historically been tied to C/C++. Rust offers memory safety without garbage collection, which is critical for high-performance computing. SIMT programming (Single-Instruction Multiple-Thread) becomes more accessible Single tooling ecosystem — Cargo works with all targets the same way Memory-safety guarantees even for GPU code Easier integration of CUDA into existing Rust projects Reduces the boundary between host language and kernel language cuda-oxide v0.1.0 is the first step. The tool is experimental, so production dep

What This Means?

NVIDIA is investing in the Rust ecosystem for GPU computing. This signals that the world is moving away from mandatory C/C++ for parallel computing. If cuda-oxide reaches a production version, it could become the standard for new CUDA projects in Rust and change the landscape of GPU development.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Hands-On AI Engineering · Hamidun Academy

Build & Ship Production AI Agents Without Boilerplate Code

Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.

Start 72h Free Trial →Vibe-Coding Intensive
What do you think?
Loading comments…