Skip to Content
CUDA Programming
book

CUDA Programming

by Shane Cook
December 2012
Intermediate to advanced
600 pages
18h 19m
English
Morgan Kaufmann
Content preview from CUDA Programming

Chapter 5

Grids, Blocks, and Threads

What it all Means

NVIDIA chose a rather interesting model for its scheduling, a variant of SIMD it calls SPMD (single program, multiple data). This is based on the underlying hardware implementation in many respects. At the heart of parallel programming is the idea of a thread, a single flow of execution through the program in the same way a piece of cotton flows through a garment. In the same way threads of cotton are woven into cloth, threads used together make up a parallel program. The CUDA programming model groups threads into special groups it calls warps, blocks, and grids, which we will look at in turn.

Threads

A thread is the fundamental building block of a parallel program. Most C programmers are ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The CUDA Handbook: A Comprehensive Guide to GPU Programming

The CUDA Handbook: A Comprehensive Guide to GPU Programming

Nicholas Wilt
Professional CUDA C Programming

Professional CUDA C Programming

John Cheng, Max Grossman, Ty McKercher

Publisher Resources

ISBN: 9780124159334