# NVlabs/cuda-oxide

cuda-oxide is an experimental Rust-to-CUDA compiler that lets you write (SIMT) GPU kernels in safe(ish), idiomatic Rust. It compiles standard Rust code directly to PTX — no DSLs, no foreign language bindings, just Rust.

Repository: https://github.com/NVlabs/cuda-oxide
Canonical: https://ross.abutalabs.com/products/cuda-oxide
Homepage: https://nvlabs.github.io/cuda-oxide/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: compiler-backend, async, cuda, gpu, high-performance-computing, nvidia, programming-languages, rust, heterogeneous-computing
Last push: 2026-08-24T06:31:11+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 87, longevity 9
- inputs: {"age_days": 133, "days_push": 9, "days_rel": 84, "gap_med": 16.0, "n_releases_24m": 3}
- flags: young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3097, forks 243 (observed 2026-08-28T04:07:43.400381+00:00)

## What it is
cuda-oxide is an experimental rustc codegen backend that compiles Rust GPU kernels directly to CUDA PTX, letting you write SIMT device code in idiomatic Rust with no DSLs or foreign bindings. It includes device-side abstractions (shared memory, atomics, warp ops, TMA) and a host-side runtime for memory management and kernel launching.

## Use cases
- write cuda kernels in rust
- compile rust to ptx
- gpu programming without c++
- single-source host and device code in rust
- launch gpu kernels from rust
- use tensor memory accelerator from rust
- async gpu programming in rust

## When to choose
- you want to write GPU kernels in pure idiomatic Rust without DSLs or C++ bindings
- you want host and device code in the same Rust source compiled with cargo
- you need device-side features like shared memory, warp ops, clusters, or TMA from Rust
- you're exploring the Rust GPU ecosystem and can tolerate alpha-quality software

## When to avoid
- you need a stable, production-ready CUDA toolchain — the project is an early alpha with API breakage
- you need full CUDA feature coverage or mature tooling comparable to CUDA C++/nvcc
- you don't use NVIDIA GPUs or Rust
- you need guaranteed correctness for safety-critical workloads given the experimental safety model

## Facets
- artifact type: library
- maturity: experimental
- function: compiler, gpu-computing, sdk
- domain: gpu-computing, programming-languages, compilers, developer-tools
- platform: rust
- tags: cuda, ptx, rustc-backend, simt, kernels, nvidia, heterogeneous-computing, no-dsl, linux, nvidia-gpu

## Member repositories
- NVlabs/cuda-oxide (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:43.400381+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:27:16.767206+00:00, confidence not recorded.
  - readme: https://github.com/NVlabs/cuda-oxide (fetched 2026-08-28T04:07:43.400381+00:00, sha 42ef2d7d6647)
  - homepage: https://nvlabs.github.io/cuda-oxide/ (fetched 2026-08-29T09:42:21.519455+00:00, sha fdb2ac461c98)
- Data as of 2026-08-30T08:39:29.467469+00:00.
