From Steam to Silicon

V. Artificial Intelligence · Chapter 45

The GPU

In 1995, on Intel 486 PCs across America, the green-shirted, shotgun-wielding marine of id Software’s DOOM was bursting into VGA glory against a blood-red sky. DOOM ran entirely in software, pushing the CPU to its limits. Early add-on graphics cards were beginning to appear—including one from a struggling startup called NVIDIA—but there was still no such thing as a GPU, only fixed-function display hardware, and none of it accelerated the style of rendering Carmack’s engine used.

Carmack, one of the greatest programmers of his era, became legendary for squeezing astonishing performance out of commodity PCs. His engines were so well optimized that early 3D accelerator cards offered little advantage; their fixed-function pipelines targeted effects Carmack wasn’t using, so he simply outperformed them in software.

That changed with id Software’s next game. Quake, released in 1996, vaulted PC gaming into fully realized 3D worlds: every wall, floor, and enemy was built from true polygons. Quake initially shipped with software rendering as well—Carmack still confident he could out-optimize the hardware. But later that year he saw his engine running on 3dfx’s Voodoo Graphics card, the first consumer product that accelerated textured polygons exactly the way his pipeline needed. With a Voodoo card, Quake could run smoothly at resolutions more than twice as sharp as software rendering allowed. Hardware-accelerated Quake became the killer app for the Voodoo card, and 3dfx quickly dominated the 3D accelerator market.

By 1997, 3dfx was ascendant and NVIDIA was on the ropes. NVIDIA survived multiple near-death crises that year. First came the collapse of its NV1 strategy: NVIDIA could keep funding the chip only by begging investors for a lifeline. Sequoia Capital ultimately fronted a $1 million penalty so NVIDIA could break its foundry contract, kill the NV1, and pivot to a new design, the Riva 128. Against the odds, the Riva 128 proved broadly successful and bought NVIDIA a few precious quarters of life.

Then came a second crisis. NVIDIA had agreed to build the graphics chip for Sega’s upcoming Dreamcast, only to see Microsoft abruptly change the industry’s direction with Direct3D—stranding NVIDIA with a design Sega no longer wanted. Bankruptcy loomed again. The company survived only because Sega president Shoichiro Irimajiri allowed NVIDIA to walk away from the contract without penalty. Confidence in NVIDIA’s failure was so widespread that 3dfx executives declined to acquire them, assuming they would simply hire the engineers and scoop up the assets after the inevitable collapse.

But NVIDIA proved more resilient than anyone expected. As 3dfx stumbled—most disastrously with its attempt to vertically integrate into board manufacturing—NVIDIA outflanked them and captured the crucial OEM preinstall market with Dell and Compaq. The reversal was so decisive that NVIDIA, not 3dfx, ultimately acquired its rival’s remaining assets out of bankruptcy in December 2000.

The Riva 128, like all consumer 3D chips of its time, was a fixed-function pipeline design. Its stages—geometry setup, texture mapping, lighting, blending—were hardwired in silicon. Developers chose from the small menu of effects the hardware designers had anticipated, but they couldn’t “program” the GPU in any meaningful sense.

Over the next several years, under the leadership of NVIDIA Chief Scientist David Kirk and CEO Jen-Hsun (“Jensen”) Huang, NVIDIA pushed toward greater flexibility. The GeForce 3 in 2001 introduced programmable shaders, enabling developers to write small programs that customized vertex transformations and pixel effects; the GeForce FX in 2003 expanded this programmability further. The programming model was clunky—assembly-like languages, a handful of instructions—but it was the first step toward the GPU becoming a genuinely programmable compute engine.

Even with these awkward abstractions, researchers outside NVIDIA began to “abuse” programmable shaders for scientific work. CPUs executed a small number of complex instruction streams—each thread doing many different kinds of work in sequence—while GPUs could run thousands of tiny arithmetic programs in parallel, each kernel performing the same simple operation on different pieces of data. Academics recast shaders as math units, using them to multiply matrices, solve finite-element simulations, and even reconstruct MRI scans in real time—tasks that previously required specialized hardware. As Kirk recalled, “graphics is hard, so we built a super-powerful, super-flexible giant computation engine to do it. Researchers saw all that floating-point horsepower and the ability to program it a little by hiding computation in some graphics algorithm.” These early experiments convinced Huang that GPUs, if made more broadly programmable, could be useful far beyond games.

With the GeForce 8800 (“G80”) in late 2006, NVIDIA built the first truly general-purpose GPU. The G80 introduced a pool of 128 identical programmable cores that could all work in parallel; later NVIDIA chips would scale this model to hundreds, then thousands, then tens of thousands of cores. These cores were intentionally simple—unlike CPU cores, which had evolved layers of complexity to extract small amounts of parallelism from a mostly sequential instruction stream. GPUs expected to be “spoon-fed” massive batches of uniform work. CPUs were optimized for diverse, branchy tasks; GPUs for applying the same numerical operation across vast arrays. In retrospect, the two architectures occupied different stable design points. GPUs turned out to be the perfect engines for large-scale numerical workloads.

The reason GPUs became ideal for deep learning is that graphics and neural networks share the same underlying computational pattern. A 3D scene is nothing more than enormous arrays of numbers—vertex positions, normals, texture coordinates—being transformed by matrices over and over to compute where every point should appear on the screen. A neural network is also an enormous array of numbers—weights, activations, gradients—being transformed by matrices over and over as information flows forward and backward through its layers. In graphics, matrices rotate and project objects; in deep learning, they combine features, propagate signals, and compute gradients. Both workloads boil down to dense, massively parallel linear algebra. Graphics arrived at this structure for geometric reasons; neural networks arrived at it for statistical ones. But the computational heartbeat—the part that consumes the cycles—is almost identical.

With the G80, NVIDIA also introduced CUDA, a GPU programming model that extended C with primitives for data-parallel computation. Huang insisted that every chip NVIDIA shipped from that point forward must support CUDA—no exceptions. It was an expensive, controversial bet. Supporting CUDA consumed precious die area; gamers—the company’s core audience—had no use for it; and there was no immediate market beyond a small community of researchers experimenting with GPU-based scientific computing. Wall Street investors were skeptical of the strategy, to say the least.


A year after the G80 launched, roughly fifty analysts filed into NVIDIA’s Santa Clara headquarters for an investor day devoted to the new “GPU computing” vision. All morning, Huang and his team walked through slide after slide: the idea that GPUs could accelerate scientific computing and medical imaging, the prospect of GPU-heavy data centers, the still-tiny but potentially multi-billion-dollar market for high-performance compute. The room listened politely and came back, again and again, to the same point: CUDA was dragging down gross margins, and there was no evidence yet that anyone outside a handful of researchers actually wanted it.

Lunch was served under a white tent in the parking lot—plastic tables, a buffet of sandwiches and soda, the usual Silicon Valley corporate spread. An analyst from Hudson Square, Daniel Ernst, grabbed a plate and sat down. Other analysts drifted over. Eventually Huang joined them. The questions started immediately: What would CUDA do to near-term profitability? How much extra die area was it consuming? When would margins recover as the company shifted to the next process node? Huang answered patiently at first, repeating the guidance the finance team had laid out that morning. The analysts kept pressing for quarter-by-quarter numbers. They wanted a tidy bridge from today’s costs to tomorrow’s profits. He was trying to talk about years; they were trying to talk about months. Ernst could see Huang’s frustration rising.

So Ernst changed tack. He told Huang about his new DSLR, the high-resolution photos he downloaded to his Mac, how Photoshop bogged down as soon as he opened a big image. Could a GPU fix that? Huang’s mood flipped. Here, finally, was a concrete, end-user problem. He leaned in and explained how Adobe was working with NVIDIA so that future versions of Photoshop could hand off precisely that kind of workload to the GPU; CUDA would let the CPU off-load the heavy numerical lifting and make the interface feel snappy again. “That’s what I mean by the coming ‘Era of the GPU,’” he said. For the analysts who could hear it, this was the real point: CUDA wasn’t a science project, it was an attempt to redefine what counted as “normal” computation.

In the meantime, the numbers looked brutal. CUDA added substantial cost to every chip, and almost no one was using it. As NVIDIA converted its lineup to be CUDA-compatible, gross margins fell by more than ten percentage points. When the 2008 financial crisis arrived, demand for high-end graphics cards and GPU workstations evaporated, and NVIDIA’s stock price collapsed by more than eighty percent in a little over a year, while the NASDAQ dropped fifty percent. Investors openly pushed for a course correction—drop the science-fair stuff, go back to cheaper, graphics-only parts, harvest what was left of the gaming business. Huang refused. “CUDA added a ton of cost into our chips,” he later acknowledged. “We had very few customers for CUDA but we made every chip CUDA compatible… We had to make that sacrifice. I had a deep belief in its potential.”

Huang would not be buckling to Wall Street. The man who would later be an iconic billionaire in a leather jacket had spent his teens washing dishes and cleaning bathrooms at Denny’s, and believed deeply that character was built in the school of pain and suffering. His conviction stemmed from deep technical knowledge of the details, and Huang saw this kind of long term engineering bet as exactly the role of a CEO, mattering more than tidy financial optics.

Huang and Kirk thought in terms of platforms with network effects: IBM’s System/360, the Wintel PC stack, later the iPhone. Those systems only worked because hardware and software moved in lockstep and were ubiquitous. Fragmentation would doom CUDA. For the ecosystem to take root, it couldn’t be a niche SKU or a workstation option; it had to be everywhere.

Building CUDA’s ecosystem was a slow slog of several years. NVIDIA chief scientist David Kirk saw “Nobody knew how to program in CUDA, and nobody was devoting effort to it. Nobody wanted to hear it.” To seed adoption, Kirk embarked on a CUDA evangelism world tour, giving more than a hundred talks in a single year—sometimes multiple per day—demoing CUDA, teaching it, and cajoling researchers to adopt it. He even flew weekly from Colorado to the University of Illinois at Urbana–Champaign to teach an early GPU-computing course; its lecture notes and videos circulated widely online and became the seed of a nascent community.

It wasn’t until years after its launch that CUDA would find its real “killer app” in deep learning, as researchers discovered that NVIDIA’s GPUs could train neural networks orders of magnitude faster than CPUs.