What is a GPU?
The AI Glossary
In our classes, we often pause to explain the ideas behind AI and the language used to describe it. These posts grew out of those conversations. They’re for anyone who would like to understand AI better, with no technical background assumed.
A graphics processing unit, or GPU, is a processor designed to perform many calculations in parallel. GPUs were developed for graphics, where similar calculations must be applied across many picture elements. That design also suits much of the numerical work used in neural networks.
A central processing unit, or CPU, handles a wide variety of computing tasks and manages complex sequences of work. Modern CPUs can also perform parallel operations. The useful distinction is not “one calculation versus many,” but the kinds of workload and memory access for which each processor is designed.
Neural networks often involve multiplying and combining large arrays of numbers. A matrix is a rectangular arrangement of numbers; a vector is an ordered list. When many of these operations can run together, a suitable GPU can complete them efficiently. Performance still depends on the model, software and how data moves through the system.
Memory is often as important as raw processing speed. The device needs space for model weights—the learned numerical settings—and for temporary information used during training or inference. Training usually needs additional memory to calculate and store updates. A model that fits during inference may not fit during training.
Not every AI application needs a GPU. Some smaller models run effectively on CPUs or other specialized processors. Organizations can also access hosted models without owning the hardware, although the provider’s infrastructure still affects cost and performance.
For a hospital considering local deployment, buying a GPU is only one part of the decision. The team needs to assess realistic demand, response times, maintenance, power, cooling and secure operation. A small demonstration on one user’s computer does not establish capacity for hundreds of simultaneous requests. Conversely, a narrow classification task may not need the largest available accelerator. The hardware should be chosen against a measured workload, not used as a proxy for how serious an organization is about AI.
Sources: NVIDIA — CUDA Programming Guide; Goodfellow, Bengio and Courville — Deep Learning, Chapter 8: Optimization
To learn more, take a look at the AI in Health Care Certificate of Specialization from the Advanced Learning Academy at Harvard T.H. Chan School of Public Health. You can take an individual course or work toward the full certificate.
AI is a fast-moving field. This explanation reflects our class discussions and related material at the time of writing. Terminology, capabilities and tools may change.
For suggested additions or corrections, please email me at tpanch@hsph.harvard.edu.
Dr. Trishan Panch
Program Director, AI in Health Care
Harvard T.H. Chan School of Public Health — Advanced Learning Academy
Lead with AI in Health Care
The AI Pragmatist is a monthly newsletter from ALA faculty, with new explainers & essays from the Advanced Learning Academy