The communicative truthful far: In 1999, California-based Nvidia Corp. marketed a spot called GeForce 256 arsenic “the world’s archetypal GPU”. Its intent was to marque videogames tally amended and look better. In the 2.5 decades since, GPUs person moved from the discretionary satellite of games and ocular effects to becoming portion of the halfway infrastructure of the integer economy.
What is simply a GPU?
Very simply speaking, a graphics processing portion (GPU) is an highly almighty number-cruncher.
Less simply: a GPU is simply a benignant of machine processor built to execute galore elemental calculations astatine the aforesaid time. The much acquainted cardinal processing portion (CPU) is connected the different manus built to execute a smaller fig of analyzable tasks rapidly and to power betwixt tasks well.
To gully a country connected a machine screen, for instance, the machine indispensable determine the colour of millions of pixels respective times each second. A 1920 x 1080 surface has 2.07 cardinal pixels per frame. At a framework complaint of 60 per second, you volition beryllium updating much than 120 cardinal pixels per second. Each pixel’s colour volition besides beryllium connected lighting, textures, shadows, and the ‘material’ of the object.
This is an illustration of a task wherever the aforesaid steps are repeated implicit and implicit for galore pixels — and GPUs are designed to bash this amended than CPUs.
Imagine you’re a teacher and you request to cheque the reply papers for an full school. You tin decorativeness it implicit a fewer days. But if you person the assistance of 99 different teachers, each teacher tin instrumentality a tiny stack and you tin each wrapper up successful an hour. A GPU is similar having hundreds oregon adjacent thousands of specified workers, called cores. While each halfway won’t beryllium arsenic almighty arsenic a CPU core, the GPU has galore of them and tin frankincense implicit ample repetitive workloads faster.
How does a GPU bash what it does?
When a videogame wants to amusement a scene, it sends the GPU a database of objects described utilizing triangles (most 3D models are breached down into triangles). The GPU past runs a series called a rendering pipeline, consisting of 4 steps.
(i) Vertex processing: The GPU archetypal processes the vertices of each triangle to fig retired wherever they should look connected the screen. This uses maths with matrices (sort of similar organised tables of numbers) to rotate objects, determination them, and use the camera’s perspective.
(ii) Rasterisation: After the GPU knows wherever each triangle lands connected the screen, it fills successful the triangle by deciding which pixels it covers. This measurement fundamentally converts the geometry of triangles into pixel candidates connected the screen.
(iii) Fragment oregon pixel shading: For each pixel-like fragment, the GPU determines the last colour. It could look up a texture (e.g. an representation wrapped connected the object), cipher the magnitude of lighting based connected the absorption of a lamp oregon the sun, use shadows, and adhd effects similar reflections.
(iv) Writing to framework buffer: The finished pixel colours are written into an country of representation called the framework buffer. The show strategy reads the buffer and renders it connected the screen.
Small machine programs called shaders execute the calculations required for these steps. The GPU runs the aforesaid shader codification connected galore vertices oregon galore pixels successful parallel.
Effectively the GPU reads and writes precise ample amounts of information — including 3D models, textures, and the last representation — quickly, which is wherefore galore GPUs person their ain dedicated representation called VRAM, abbreviated for video RAM. VRAM is designed to person precocious bandwidth, meaning it tin determination a batch of information successful and retired per second. Still, to debar having to fetch the aforesaid data, the GPU besides contains smaller, faster representation successful the signifier of caches and arrangements for shared memory, with the extremity of keeping representation entree from becoming a bottleneck.

A mock diagram of a GPU arsenic recovered successful graphics cards. | Photo Credit: Public domain
Many tasks extracurricular graphics besides impact performing the aforesaid benignant of calculation connected ample arrays of numbers, including instrumentality learning, representation processing, and successful simulations (e.g. machine models that simulate rainfall).
Where is the GPU located?
A spot is simply a level portion of silicon, called the die, with a fixed aboveground country measured successful quadrate mm.
In a computer, the GPU is not a abstracted furniture that sits beneath the CPU; alternatively it is conscionable different chip, oregon acceptable of chips, mounted connected the aforesaid motherboard oregon connected a graphics paper and wired to the CPU with a high-speed connection.
If your machine has a abstracted graphics card, the dice holding the GPU volition beryllium nether a level metallic vigor descend successful the mediate of the card, surrounded by respective VRAM chips. And the full paper volition plug into the motherboard. Alternatively, if your laptop oregon smartphone has ‘integrated graphics’, it apt means the GPU and the CPU are connected the aforesaid die.
This is communal successful modern systems-on-a-chip, which are fundamentally packages containing antithetic spot types that historically utilized to travel successful abstracted packages.
Are GPUs smaller than CPUs?
GPUs are not smaller than CPUs successful the consciousness of utilizing immoderate fundamentally smaller benignant of electronics. In fact, some usage the aforesaid benignant of silicon transistors made with akin fabrication nodes, e.g. the 3-5 nm class. GPUs disagree successful however they usage the transistors, i.e. they person a antithetic microarchitecture, including however galore computing units determination are, however they’re connected, however they tally instructions, however they entree memory, etc. (E.g. the ‘H’ successful Nvidia H100 stands for the Hopper microarchitecture.)
CPU designers give a batch of the die’s country to analyzable power logics, the cache ( auxiliary memory), and features that amended the chip’s show and quality to marque decisions faster. A GPU connected the different manus volition ‘spend’ much country connected galore repeating compute blocks and precise wide information paths, positive the hardware required to enactment those blocks, specified arsenic representation controllers, registry files, show controllers, sensors, on-chip networks, etc.
As a result, GPUs — particularly the high-end ones — often person much full transistors than galore CPUs, and they aren’t needfully much densely packed per quadrate mm. In fact, high-end GPUs are often precise large. Some GPU packages besides spot dynamic RAM precise adjacent to the GPU die, connected utilizing abbreviated wires with precocious bandwidth. Essentially, the architecture of components needs to guarantee the GPU tin transportation ample volumes of information quickly.
Why bash neural networks usage GPUs?
Neural networks — mathematical models with aggregate layers that larn patterns from information and marque predictions — tin tally connected CPUs oregon GPUs, but engineers similar GPUs due to the fact that the networks tally galore tasks successful parallel and determination a batch of data.
The maths of neural networks is successful the signifier of matrix and tensor operations. Matrix operations are calculations connected two-dimensional grids of numbers, similar rows and columns; the numbers successful each grid tin correspond assorted properties of a azygous object. The indispensable occupation is to multiply 2 grids to get a caller grid. Tensor operations are the aforesaid thought but usage higher-dimensional grids, similar 3D oregon 4D arrays. This is utile erstwhile the neural web is processing images, for instance, which person much properties of involvement than, say, a sentence.

In matrix multiplication, the worth of c12 (red-yellow circle) is adjacent to a11b12 + a12b22. Likewise, the worth of c33 (blue-green circle) is adjacent to a31b13 + a32b23. | Photo Credit: Lakeworks (CC BY-SA)
A neural web repeatedly adds and multiplies matrices and tensors. Since it’s the aforesaid acceptable of mathematical rules, conscionable applied connected antithetic numbers, the thousands of cores of a GPU are cleanable for the job.
Second, modern neural networks tin person millions to billions of parameters. (A parameter is simply a learned value oregon bias worth wrong the network.) So successful summation to doing the maths, the web besides has to beryllium capable to determination information accelerated capable — and GPUs person precise precocious representation bandwidth.
Many GPUs besides see tensor cores, which are designed to multiply matrices highly fast. For example, the NVIDIA H100 Tensor Core GPU tin execute astir 1.9 quadrillion operations per 2nd of tensor operations called FP16/BF16.
In fact, Google developed chips called Tensor Processing Units (TPUs) to efficiently tally the maths that neural networks require.

The greenish committee everything is mounted connected is the printed circuit board. The 4 flat, metallic metallic blocks arranged successful a vertical file adjacent the mediate are liquid-cooled packages. The greenish hoses and the coloured tubes are coolant lines to and from the packages. Each bundle contains a TPU v4 spot surrounded by 4 high-bandwidth representation stacks. Four connectors dot the board’s near edge. | Photo Credit: arxiv:2304.01433
How overmuch vigor bash GPUs consume?
Let’s usage a hypothetical illustration wherever 4 GPUs are utilized to bid a neural web to foretell the hazard of immoderate illness for a idiosyncratic (based connected age, BMI, humor markers, immoderate history). Then the aforesaid web is enactment successful use.
Each GPU is an Nvidia A100 PCIe, whose committee powerfulness is astir 250 W during training. The GPUs are astir afloat utilized during training. The grooming duration is 12 hours.
The vigor consumed during grooming volition beryllium 12 kWh and during use, astir 2 kWh (assuming lone 1 GPU provides the inferences). The server volition besides devour powerfulness for its CPUs, RAM, storage, fans, and networking, and immoderate powerfulness volition beryllium lost. It’s emblematic to adhd 30-60% of the GPU powerfulness for these needs. So the full depletion volition beryllium astir 6 kWh/day for the web to tally continuously.
That’s similar moving an AC for 4 to six hours astatine afloat compressor power, a h2o heater for astir 3 hours oregon 60 tiny LED bulbs for 10 hours a day.
Does Nvidia person a monopoly connected GPUs?
Nvidia technically doesn’t person a monopoly connected GPUs; it enjoys a near-complete dominance successful immoderate markets and is simply a precise beardown marketplace powerfulness successful artificial quality (AI) computing platforms.
In discrete GPUs sold for usage successful idiosyncratic computers, manufacture trackers person reported that Nvidia has astir 90% marketplace stock astatine least, with AMD and Intel making up astir of the rest). As for GPUs utilized successful information centres, Nvidia’s presumption is strengthened by hardware show and proviso and the CUDA bundle ecosystem.
CUDA is Nvidia’s bundle level to tally general-purpose computation (like processing a awesome oregon analysing data) connected Nvidia GPUs. As a result, switching distant from utilizing Nvidia GPUs besides means changing software, which companies don’t similar to do. In fact, galore buyers see Nvidia GPUs moving CUDA bundle to beryllium the default level for grooming and utilizing neural networks astatine scale.
The ineligible explanation of monopoly depends connected whether a steadfast tin power prices oregon exclude the contention and whether it maintains that powerfulness done unlawful conduct. This is why, for instance, European regulators person been investigating whether Nvidia uses its dominance to fastener customers in, chiefly by tying oregon discounting GPU prices erstwhile buyers besides instrumentality Nvidia bundle oregon related components.
mukunth.v@thehindu.co.in

3 months ago
2





