Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


“This book is required reading for anyone working with accelerator-based computing systems.” –From the Foreword by Jack Dongarra, University of Tennessee and Oak Ridge National Laboratory

CUDA is a computing architecture designed to facilitate the development of parallel programs. In conjunction with a comprehensive software platform, the CUDA Architecture enables programmers to draw on the immense power of graphics processing units (GPUs) when building high-performance applications. GPUs, of course, have long been available for demanding graphics and game applications. CUDA now brings this valuable resource to programmers working on applications in other domains, including science, engineering, and finance. No knowledge of graphics programming is required–just the ability to program in a modestly extended version of C.

CUDA by Example, written by two senior members of the CUDA software platform team, shows programmers how to employ this new technology. The authors introduce each area of CUDA development through working examples. After a concise introduction to the CUDA platform and architecture, as well as a quick-start guide to CUDA C, the book details the techniques and trade-offs associated with each key CUDA feature. You’ll discover when to use each CUDA C extension and how to write CUDA software that delivers truly outstanding performance.

Major topics covered include

  • Parallel programming

  • Thread cooperation

  • Constant memory and events

  • Texture memory

  • Graphics interoperability

  • Atomics

  • Streams

  • CUDA C on multiple GPUs

  • Advanced atomics

  • Additional CUDA resources

All the CUDA software tools you’ll need are freely available for download from NVIDIA.

Subscriber Reviews

Average Rating: 4.555555555555555 out of 5 rating Based on 9 Ratings

"Well presented, formatted and structured book. " - by Anonymous on 20-OCT-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
At first, GPU programming can seem daunting. This book takes a gradual step by step approach, explaining everything in detail and not making any assumptions about the users knowledge.

I am not a typical C programmer but this book helped me to grasp the basics and get started.

Report as Inappropriate

"CUDA by Example" - by Anonymous on 24-JUL-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This book introduces concepts of CUDA and how to apply them with simple example. Great for those looking to start project with CUDA.
Report as Inappropriate

"Programmer" - by CUDAProgrammer on 01-AUG-2010
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
An excellent book. Have bought several copies for our programming department as we getting into CUDA.

Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


These links have been provided by the publisher.

  • Author's Website