liveBook · Manning

GPU

As explained in Latency

A GPU is a processor designed with many parallel execution resources for graphics and general-purpose data-parallel computation.

A GPU is a processor with many parallel execution resources, capable of running tens of thousands of hardware threads simultaneously. This makes GPUs well suited to data-parallel workloads that apply similar calculations across different datasets. section 9.1

Unlike concurrency on one CPU core, which interleaves tasks to create an illusion of simultaneous progress, GPU execution provides true parallelism across separate execution units. section 9.1

Figure 9.1 Concurrency versus parallelism. Concurrent execution (on the left) interleaves thread execution on a single core, which provides an illusion of work happening at the same time because all threads make some progress quickly. In contrast, parallel execution (on the right) executes the threads simultaneously on different cores, providing true parallel execution.
Figure 9.1: Concurrency vs parallelism. Concurrent execution interleaves threads, while parallel execution executes them simultaneously.

Compare interleaved execution on one core with simultaneous execution across separate cores or execution units. section 9.1

How Latency covers it

How deep it goes
Defines GPU parallel execution and contrasts it with concurrency, but stops short of implementation details or performance measurement.
Examples
Uses interleaved single-core threads, multicore execution, and tens of thousands of GPU hardware threads as comparison examples.
What it assumes
Distinguishes concurrency from true parallelism while introducing GPU execution through CPU and multicore comparisons.
What you can do after
Evaluate whether a workload fits GPU execution by identifying repeated calculations across independent datasets.
How it connects
Connects GPUs to concurrency, parallelism, CPU cores, hyperthreading, hardware threads, and data parallelism.

Also explained in

Compare how 14 books explain GPU →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Latency. The section links point to the parts of the book it draws on.