Self-taught hardware engineer discovers that GPUs really are ridiculously complex and hard to design after all

self-taught hardware engineer discovers that gpus really are ridiculously complex and hard to design after all

Self-taught hardware engineer discovers that GPUs really are ridiculously complex and hard to design after all

Anyone who has studied electrical engineering will know that with the right tools, know-how, and a lot of perseverance, it’s possible to design a basic CPU from scratch. It won’t be anything like today’s processors, of course, but what about GPUs? Surely they can’t be any different, yes? Well, one determined software engineer decided to do just that but found out that it’s much harder than you’d think.

Adam Majmudar has been chronicling his trials and tribulations on Twitter (via Tom’s Hardware), having first started with learning the fundamentals behind central processor architecture, before moving on to creating a complete CPU. It’s obviously nothing like the chips you can buy for your gaming PC and it reminds me a lot of basic 4-bit processors I learned to design many decades ago.

Modern software packages and hardware description languages simplify the process quite a bit, but it’s still a mighty challenge.

Flushed with success, Majmudar then decided it was time to do the same with a GPU. After all, the basic structure of a shader unit is nothing more than an arithmetic logic unit, with some registers to store data, another unit to load and store said data, and something to manage the whole process of doing an operation.

The engineer rapidly realised that while CPUs and GPUs do share a lot of common aspects, the latter are very different in how they use memory and manage threads. It’s also worth noting that Majmudar wasn’t aiming to make a ‘graphics’ GPU but rather a GPGPU—in other words, he wasn’t designing systems like triangle setup, TMUs, ROPs, or any of the numerous fixed function circuits that the chips in graphics cards have.

But, to his credit, his basic GPU design ultimately worked after solving a number of issues with the help of others and was able to run a small number of instructions and crunch through some matrix calculations in software simulation. His CPU and GPU designs will get put into a physical form via the Tiny Tapeout project.

The best part about Majmudar’s work is that he’s shared the whole project on Github, to have a resource that anyone can use if they want to know more about how a GPU works in the depths of its hardware.

Anyone can learn to program a GPU, simply because all of the necessary tools are readily available online, along with a raft of tutorials and exercises to follow. Learning how to design a shader unit at a transistor level is a different thing entirely, as none of the big three chip makers (AMD, Intel, Nvidia) share such information publicly.

Now, if you’ll excuse me, I’m off to design a GPU with 100,000 shaders. Wonder what name I should sell it under—Raforce? Gedeon? Knowing my skills, GeFarce will be more appropriate, I think.

OTHER NEWS

20 minutes ago

Chelsea's Hayes signs off with spectacular WSL title win

20 minutes ago

Tuchel bemoans lack of focus as Bayern finish third

20 minutes ago

Emma Hayes leaves Chelsea on a high after securing fifth successive WSL title

20 minutes ago

Scottie Scheffler willing to go to trial over assault charge

20 minutes ago

Hot weather poses new risk as thousands remain without power after deadly Houston storm

21 minutes ago

MLB hired Nelson Cruz to be special adviser for baseball operations

21 minutes ago

When will the power be back on? CenterPoint gives Saturday update, saying they're working to have most customers up by Wednesday

22 minutes ago

Workers remove dozens of apparent cannabis plants from Wisconsin Capitol tulip garden

23 minutes ago

Fort McMurray evacuation order lifted after subdued wildfire behaviour

25 minutes ago

The new Willy Wonka Experience? Basingstoke Comic Con descends into 's**tshow' as fans queue for 12 HOURS in sweltering heat for £175 autographs from Aquaman Jason Momoa, staff are attacked and other workers fail to turn up

25 minutes ago

Man United 0-6 Chelsea: Emma Hayes' side deliver fairytale farewell for departing boss in style... as Blues are crowned WSL champions for a historic FIFTH consecutive season

26 minutes ago

Demi Moore Offers Support to Chopard Honorees Mike Faist, Sophie Wilde at Cannes Gala: "You Don't Have to Do It Alone"

26 minutes ago

Concern over oil exploration on the West Coast

26 minutes ago

UK weather: Huge floods block roads after 'biblical' rainfall sees river burst its bank

26 minutes ago

Age of the AI agents: OpenAI's GPT-4o and Google's Project Astra, plus an exclusive sit-down with Google CEO Sundar Pichai

26 minutes ago

‘Wicked’ trailer hints at an edgier Glinda and showstopping Elphaba as played by Ariana Grande and Cynthia Erivo

26 minutes ago

How much guaranteed money the Seahawks gave their 2024 UDFAs

26 minutes ago

DNC targets Trump gun rhetoric with billboards near NRA conference in Texas

27 minutes ago

Met Office map reveals where storms are set to batter UK

27 minutes ago

Snakebite helped Nancy Bentley, 6, make history in 1920 as Royal Australian Navy's youngest 'recruit'

27 minutes ago

The Story Behind Boeing's 747 Airborne Aircraft Carrier

27 minutes ago

Tyson Fury vs. Oleksandr Usyk live results and analysis

30 minutes ago

Demi Moore Channels Cher with Two Bold Sequined Dresses in Cannes

30 minutes ago

MK Party members undeterred by transport ‘sabotage’

30 minutes ago

Cardinals' B.J. Ojulari explains why he was willing to give up his jersey number to Marvin Harrison Jr.

30 minutes ago

Suspected protester spotted scaling George Washington Bridge causing traffic delays

30 minutes ago

Chrissy Teigen and John Legend shrug off backlash as they party away at JBL Fest in NYC after they were accused of 'kicking out' girls in photo booth to use themselves

33 minutes ago

Trump to hold first New York rally in eight years

33 minutes ago

In keen Sirsa battle, Selja seizes on farm rage, unemployment, as Tanwar plays Modi card

33 minutes ago

The young children facing anti-Semitic abuse at school – while their teachers remain silent

33 minutes ago

Health bosses warn of 'thunderstorm asthma'

34 minutes ago

Max Verstappen enjoys ‘special’ day as he matches Ayrton Senna pole record

34 minutes ago

Amy Kremer helped organize the pro-Trump Jan. 6 rally. Now she is seeking a Georgia seat on the RNC

36 minutes ago

'Like Inglis': Lockyer backs Cobbo for Maroons recall

36 minutes ago

Progressive Biden staffer who furiously resigned over White House support for Israeli 'genocide' is daughter of weapons company executive who's helping Netanyahu government

36 minutes ago

Oakland man, 80, is left heartbroken after his beloved $200k vintage Corvette was stolen from his garage - and blames city's progressive DA and mayor for imposing 'no consequences' on criminals

36 minutes ago

White Bird (2024) Final Trailer

37 minutes ago

Whistleblower ‘forced out’ of Whitehall over gender beliefs

37 minutes ago

Armagh score two goals – and nothing else – in second half to surpass Donegal and reach Ulster final

37 minutes ago

Hezbollah firing more advanced weaponry as it ups pressure on Israel

Kênh khám phá trải nghiệm của giới trẻ, thế giới du lịch