Skip to main content
  • Hoopla logo
  • Browse
  • My Hoopla
  • Log In
Books, videos, and music - all free from your public library!
LoginSign Up

Footer

Hoopla logo, Go to homepage
  • For Patrons
  • For Libraries (opens in new window)
  • For Vendors (opens in new window)
  • Facebook (opens in new window)
  • X (opens in new window)
  • Instagram (opens in new window)
  • YouTube (opens in new window)
  • TikTok (opens in new window)
  • LinkedIn (opens in new window)

Our Company

  • Our Story
  • Get Hoopla for your Library (opens in new window)
  • Get your content on hoopla (opens in new window)
  • Join our team (opens in new window)
  • Accessibility Statement

Our Content

  • Audiobooks
  • Ebooks
  • Movies
  • Television
  • Comics
  • BingePasses
  • Music
  • The Loop Blog

Help

  • Help Center
  • Submit Feedback
  • Facebook (opens in new window)
  • X (opens in new window)
  • Instagram (opens in new window)
  • YouTube (opens in new window)
  • TikTok (opens in new window)
  • LinkedIn (opens in new window)
  • Download on the App Store (opens in new window)
  • Get it on Google Play (opens in new window)
  • Available at Amazon Appstore (opens in new window)
© 2026 Midwest Tape, LLC. All rights reserved. Privacy Policy | Terms of Use
  1. Navigate Home
  2. Ebooks
  3. GPU Programming using Rust and CUDA

EBOOK

GPU Programming using Rust and CUDA

Exploring Rust's potential in GPU and parallel computing using Rust-CUDA, cuda-oxide, and RustaCUDA

Maris Fenlor
(0)
sign up
Year
2026
Language
English
Publisher
GitforGits

About

C++ has been the go-to for GPU programming for almost 20 years. Can Rust do the job, and how well?

This book is all about getting hands-on with different toolchains that connect Rust to NVIDIA hardware. There's RustaCUDA for safe host-side control, the Rust-CUDA project for writing kernels in pure Rust, and NVIDIA's experimental cuda-oxide compiler with its typed launches and async execution graphs.

We're going to build one Cargo workspace that keeps on growing. It'll include device queries, launch planning, Rust-written kernels, memory optimization, parallel reductions and scans, multi-stream pipelines, matrix multiplication benchmarked against cuBLAS, a Monte Carlo option pricer validated against a closed formula, and a complete batched inference application measured against a Python baseline. We'll check every result against a CPU reference, and the reports will give accurate numbers, including where libraries outperform hand-written kernels and where experimental toolchains are still a work in progress.
Key Learnings
Launch, synchronize, and verify GPU kernels with ownership-managed device memory.
Write real CUDA kernels using Rust-CUDA and cuda-oxide.
Plan grids, blocks, and warps for 2D workloads.
Accelerate transfer speeds with pinned memory and coalesced access patterns.
Build race-free thread cooperation using shared memory, barriers, and atomics.
Overlap transfers with computation using streams, events, and async Rust pipelines.
Optimize matrix multiplication and benchmark against cuBLAS ceiling.
Wrap CUDA C library safely with handles, error enums, and Drop.
Ship complete batched GPU inference application against Python baselines.
Diagnose performance with Nsight Systems, Nsight Compute, and compute-sanitizer.
Table of Content
New Beneficiary of GPU Computing
Thinking in Threads
Commanding GPU
Writing GPU Kernels
Cleaner Kernels with cuda-oxide
Mastering GPU Memory
Making Threads Cooperate
Keeping GPU Busy
Delivering Real Math
Borrowing NVIDIA's Muscle
Shipping Complete GPU Application
Proving Performance

Related Subjects

  • Parallel Processing
  • Computers
  • Adult Nonfiction
  • Algorithms
  • Programming
  • Parallel

Artists

Maris FenlorAuthor