The cuda-oxide Book — 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. Note This book assumes familiarity with the Rust programming language, including ownership, traits, and generics. Later chapters on async GPU programming also assume working knowledge of async/.await and runtimes like tokio. For a refresher, see The Rust Programming Language, Rust by Example, or the Async Book. The v0.1.0 release is an early-stage alpha: expect bugs, incomplete features, and API breakage as we work to improve it. We hope you’ll try it and help shape its direction by sharing feedback on your experience. Build and run with cargo oxide run vecadd upon installing the prerequisites. The same launch-contract pattern is what cargo oxide new scaffolds; see Writing Your First Kernel. Note #[cuda_module] embeds the generated device artifact into the host binary a
cuda-oxide is a 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. Note This book assumes familiarity with the Rust programming language, including ownership, traits, and generics. Later chapters on async GPU programming also assume working knowledge of async/.await and runtimes like tokio. For a refresher, see The Rust Programming Language, Rust by Example, or the Async Book. Project Status# The v0.1.0 release is an early-stage alpha: expect bugs,…
saved by
related reading
- What happens when you run a CUDA kernelfergusfinn.com
- Rust GPUrust-gpu.github.io
- Writing an OS in Rustos.phil-opp.com
- CUDA Programming Guide — CUDA Programming Guidedocs.nvidia.com
- CUDA C++ Programming Guide (Legacy) — CUDA C++ Programming Guidedocs.nvidia.com
- VectorWarevectorware.com
- The Rust Programming Language - The Rust Programming Languagedoc.rust-lang.org
- Learn Rust the Dangerous Waycliffle.com
- Rust for C programmers - Rust for C-Programmersrust-for-c-programmers.com
- 1. Introduction — PTX ISA 9.3 documentationdocs.nvidia.com
- Summary - Rust for C-Programmersrust-for-c-programmers.com
- GitHub - gpu-mode/resource-stream: GPU programming related news and material linksgithub.com