Leanpub Header

Skip to main content

Retired

This bundle is no longer available for purchase.

GPU PTX and SASS Mini Bundle

Go beyond CUDA and into the core of GPU execution with this 2-book PTX and SASS bundle. Learn how instructions translate to real hardware behavior, how to analyze performance at the instruction level, and how to apply advanced optimization techniques used in high-performance systems. Built for developers ready to move from abstraction to control.

The following 2 books are included in this bundle...

These books have a total suggested price of $58.00. Get them now for only $29.00!
About

About

About the Bundle

Unlock the lowest levels of GPU performance with the GPU PTX and SASS Mini Bundle—a focused 2-book set designed for engineers who want direct control over NVIDIA hardware.

This bundle takes you beyond high-level abstractions and into the instruction layer where performance is truly decided. You will learn how PTX maps to real hardware execution, how SASS instructions behave at the microarchitectural level, and how to exploit this knowledge for optimization that typical CUDA workflows cannot reach.

Volume I builds the foundation—covering the PTX language, execution model, memory hierarchy, and architectural principles that govern modern NVIDIA GPUs. Volume II advances into optimization, instruction-level control, and SASS-level techniques used to extract maximum throughput, minimize latency, and push hardware limits.

What sets this apart:

  • Direct exposure to real GPU instruction flow
  • Clear mapping from PTX to SASS and hardware behavior
  • Optimization strategies used in high-performance computing and AI systems
  • A practical path from understanding to control

This is not conceptual GPU programming. It is hardware-aware engineering for those who want to operate at the level where performance is won or lost.

Share this bundle

Books

About the Books

Mastering PTX and SASS

Mastering PTX and SASS

Volume II — Optimization, SASS, and Advanced Techniques

You’ve mastered the architecture—now it’s time to own the performance.

Every GPU developer hits the same wall: the profiler says you’re close to peak, but you know there’s still headroom. What’s missing isn’t another compiler flag—it’s visibility into the hardware’s final truth. That truth lives in SASS, the real machine code running on NVIDIA GPUs.

Mastering PTX and SASS – Volume II takes you past theory into the territory where nanoseconds matter. Here you’ll learn how to read, analyze, and tune instruction streams with surgical precision. You’ll uncover how schedulers pair ops, how register pressure throttles throughput, and how to turn your kernels into clock-cycle-balanced engines of pure efficiency.

This book is for engineers who refuse to settle for “good enough.” It turns profiling, disassembly, and optimization into a repeatable process—one grounded in data, not superstition. From tensor cores to warp shuffles, from atomic operations to multi-GPU scaling, you’ll learn how real experts bend hardware to their will.

Volume I built the foundation; Volume II shows you how to weaponize it.
If you’re ready to squeeze every drop of performance from your GPU—and understand exactly how you did it—this is the manual you’ve been waiting for.

Mastering PTX and SASS

Mastering PTX and SASS

Volume I — The PTX Language and Architecture Foundations

Most CUDA programmers never see the real program their GPU actually runs.

They write CUDA C++. They launch kernels. They profile. They tune block sizes, adjust memory access, stare at Nsight reports, and hope the compiler has done what they think it has done.

But the truth is lower down.

The truth is in PTX. The truth is in SASS.

Mastering PTX and SASS is for CUDA programmers, GPU performance engineers, ML systems developers, compiler-minded programmers, and high-performance computing specialists who want to understand NVIDIA GPU execution below the source level.

This is not a beginner CUDA book.

It is for readers who already understand the basic GPU programming model and now want to inspect the layer where performance is really exposed: instruction streams, register allocation, memory transactions, predicate logic, compiler output, synchronization, tensor pipelines, and architecture-specific machine code.

Inside, you will learn how to:

  • Understand how CUDA source becomes PTX, and how PTX becomes SASS
  • Use PTX as a portable low-level view of compiler intent
  • Use SASS as evidence of what the GPU actually executes
  • Interpret register pressure, spills, occupancy, instruction scheduling, and memory traffic
  • Diagnose coalescing problems, bank conflicts, branch divergence, dependency stalls, and synchronization costs
  • Work with tensor cores, MMA, WGMMA, TMA, low-precision formats, and modern NVIDIA architecture features
  • Use nvcc, ptxas, cuobjdump, nvdisasm, Nsight Compute, Nsight Systems, and Compute Sanitizer as practical engineering tools
  • Decide when CUDA C++, compiler flags, intrinsics, inline PTX, full PTX, or SASS inspection is the right level to touch

The goal is not assembly for its own sake.

The goal is diagnosis.

The goal is control.

The goal is to look at a slow kernel and know whether the limiting factor is memory movement, instruction throughput, register pressure, tensor-pipeline starvation, branch behavior, synchronization overhead, launch cost, or compiler transformation.

Modern GPU performance is not won by writing code that merely runs.

It is won by understanding how the machine schedules work, moves data, allocates registers, forms instructions, hides latency, feeds tensor units, and exposes bottlenecks through measurable evidence.

This book is for you if you already write CUDA code and want to understand what happens after compilation.

If you are still learning what a thread block is or how kernels launch, start with an introductory CUDA book first.

But if you want to read below the source level, connect profiler symptoms to architectural causes, and move closer to the real hardware ceiling, Mastering PTX and SASS was written for you.

Correctness is only the beginning.

The real question is: how close can you get to the hardware ceiling?

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub