NCA-AIIO practice question 14 of 25

A tech startup is building a high-performance AI application that requires processing large datasets and performing complex matrix operations. The team is debating whether to use GPUs or CPUs to achieve the best performance. What is the most compelling reason to choose GPUs over CPUs for this specific use case?

Full set: 197 questions
Answer options
A: GPUs have larger memory caches than CPUs, which speeds up data retrieval for AI processing
B: GPUs excel at parallel processing, which is ideal for handling large datasets and performing complex matrix operations Correct answer
C: GPUs have higher single-thread performance, which is crucial for AI tasks
D: GPUs consume less power than CPUs, making them more energy-efficient for AI tasks
Correct Answer:
B. GPUs excel at parallel processing, which is ideal for handling large datasets and performing complex matrix operations
Explanation

The most compelling reason to use GPUs for high-performance AI applications is their massively parallel architecture. GPUs are designed with thousands of specialized cores that can execute many operations simultaneously. AI workloads, especially deep learning, are dominated by matrix and vector operations (e.g., matrix multiplication, convolutions) applied across large datasets. These tasks are inherently parallelizable, allowing GPUs to process them far more efficiently and quickly than CPUs, which are optimized for sequential, single-thread performance with a smaller number of more powerful cores.

Why Incorrect

A. CPUs, not GPUs, generally have larger and more sophisticated multi-level memory caches (L1, L2, L3) per core to reduce latency for sequential tasks.
C. CPUs have significantly higher single-thread performance. GPUs achieve high throughput by using thousands of simpler, slower cores for parallel tasks, not by excelling at single-thread speed.
D. High-performance GPUs often have a higher absolute power consumption (TDP) than CPUs. Their advantage lies in superior performance-per-watt for parallel workloads, not lower absolute power draw.

References

1. Official Vendor Documentation:

NVIDIA Corporation. (n.d.). What's the Difference Between a CPU and a GPU?. NVIDIA Official Website. Retrieved from https://www.nvidia.com/en-us/geforce/guides/cpu-vs-gpu/. In the section "How CPUs and GPUs Are Different

" it states

"A CPU is composed of a few cores optimized for sequential serial processing... A GPU is composed of hundreds of cores that can handle thousands of threads simultaneously." This directly supports the parallel processing advantage.

2. University Courseware:

Karpathy

A.

Johnson

J.

& Fei-Fei

L. (2023). CS231n: Convolutional Neural Networks for Visual Recognition. Stanford University. In the "Hardware and Software" section of the course notes

it is explained: "The reason for this is that GPUs are extremely good at performing a very specific type of computation: massively parallel computations. It turns out that training a Neural Network is exactly this type of computation." This confirms that the nature of AI tasks aligns with GPU architecture.

3. Peer-reviewed Academic Publications:

Owens

J. D.

Houston

M.

Luebke

D.

Green

S.

Stone

J. E.

& Phillips

J. C. (2008). GPU computing. Proceedings of the IEEE

96(5)

879-899. https://doi.org/10.1109/JPROC.2008.917757. Section III-A

"Architectural Features of the GPU

" details how the GPU's design with many processors and high-bandwidth memory is optimized for data-parallel computations

which are characteristic of scientific and AI workloads.

Scroll to Top