Chapter 1. First Steps

The goal of this chapter is to get you to plunge right into the world of parallel computing with CUDA. We’ll start by running a sample app provided with the CUDA Toolkit. The sample app provides both serial and parallel implementations so you can compare performance measures to get an initial feel for how CUDA can enhance your computing capabilities. Note that the procedures for building and executing apps depend on your operating system, and we’ll provide enough detail to get the sample running under Windows and Linux/OS X. At the end of the chapter, we present two simple C apps that will provide initial candidates for parallelization with CUDA.

This chapter contains several crucial checkpoints that direct you to the appendices ...

Get CUDA for Engineers: An Introduction to High-Performance Parallel Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.