
cuda-oxide
NVlabs
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.
AI 简介
cuda-oxide 是一个实验性的 Rust-to-CUDA 编译器,将标准 Rust 代码(含 `#[kernel]` 标记的函数)直接编译为 NVIDIA GPU 可执行的 PTX 中间码。其核心特点是采用 rustc 自定义后端,支持单源文件混合编写主机与设备代码,提供类型安全的设备端抽象(如共享内存、warp 操作、TMA)及配套运行时(`cuda-core`/`cuda-async`),全程无需 DSL 或 C/C++ 绑定。适用于希望用纯 Rust 进行 CUDA 异构计算开发的研究者与高性能计算场景,尤其适合需内存安全保证和 Rust 生态集成的 GPU 加速任务。
Rust
Apache License 2.02.9k
Stars
209
Forks
14
Watchers
13
Issues
Star 增长
今日0
近 7 天0
近 30 天+73
综合评分66.27
默认分支main