7 ms·
These GPU architectures are too complicated for my taste. It reminds me of the days of segmented memory, and makes me feel like having to jump through hoops all
by amelius 6y ago
These GPU architectures are too complicated for my taste. It reminds me of the days of segmented memory, and makes me feel like having to jump through hoops all the time. I'm curious if people have tried to invent something more elegant, and where these approaches have failed.
Also, the fact that NVidia has probably patented this particular architecture makes it less interesting for me to really dig into.
- 01100011 6y agoWhen you run up against the limits of Moore's law and the end of Dennard Scaling you have to get dirty and do what it takes to get more performance. Personally, I think CPU architecture became too complicated for my taste after the 68k. So what?
- CyberDildonics 6y agoYou're posting this from a 68k?
- colejohnson66 6y agoDoubt it, but it is possible. I’ve seen a few videos on YouTube of people who’ve gotten old computers (such as the OG Macintosh 128k which runs on 68k) to connect to the internet. I’ve even seen people use slightly “less powerful” machines running on a 6502 (such as the Apple II and Commodore 64).
- apatheticonion 6y agoAs someone with the most basic understanding of CPUs and assembly, why do you say that?
- modeless 6y agoAdvances in semiconductor fabrication are no longer increasing single-threaded performance of general purpose CPU code very much. It's still possible to increase performance by orders of magnitude, but it requires giving up flexibility by using dedicated hardware acceleration blocks such as tensor cores, plus going massively parallel with various combinations of SIMD and threading. That all makes software immensely more complex and less portable.
- bronxbomber92 6y agoThere is roughly equal levels of complexity in any modern, high performance, general purpose/programmable chip.
- modeless 6y agoBut it's not equally exposed to the programmer. The branch predictor in an Intel CPU may be insanely complex but when writing code you usually don't need to care. On the other hand if you want to use a GPU you have to care about a huge amount of complexity right from the start.
- kllrnohj 6y agoExcept you really do need to care about this complexity on CPUs. Things like cache locality & predictable access patterns are critical to achieving good CPU performance. This is why there's things like data-oriented design, SoA vs. AoS, and Z-order curves. It's also why linked-lists are so incredibly awful in practice, despite having superb algorithmic performance in theory. A big reason programming for CPUs doesn't seem as complex is because the vast, vast majority of time nobody actually cares about CPU performance. We all just prefer to pretend a runtime or JIT or compiler managed to magically make a language that's god-awful horrendous on modern CPUs run fast. They didn't, we just all look the other way though. The difference between CPUs & GPUs is when people reach for GPUs, such as for games or HPC, those are also the people that care a lot about performance. And guides like this are for them.
- modeless 6y agoI don't think we're fundamentally in disagreement. But I will say that there's a huge amount of value in CPUs not forcing you to care about the complexity when it doesn't matter, and it doesn't always matter.
- modeless 6y agoIt's a good question actually. Intel tried to make a GPU called Larrabee that was mostly a bunch of small x86 cores with giant vector units. Turns out that it couldn't compete in rendering performance on existing games (in 2010) without the fixed function units that GPUs have, so they canceled it as a GPU. It did result in the AVX-512 instruction set though. I think the idea still has promise but there's a chicken and egg issue where you'd really need to rearchitect game engines and content pipelines to take full advantage of the flexibility before you'd see a benefit. It's possible that it would work better today, and it's also possible that Intel just gave up too early. In some cases we're already seeing people bypassing the fixed function rasterizer in GPUs and doing rasterization manually in compute shaders [1] [2]. [1] Doom Eternal: http://advances.realtimerendering.com/s2020/RenderingDoomEternal.pdf http://advances.realtimerendering.com/s2020/RenderingDoomEte... [2] Epic Nanite: https://twitter.com/briankaris/status/1261098487279579136 https://twitter.com/briankaris/status/1261098487279579136
- dragontamer 6y agoFujitsu's A64FX ARM is proof that 512 bit SIMD can work on a CPU based platform.
- modeless 6y agoSure, but the question is can it render graphics competitively with traditional GPUs.
- PeCaN 6y agoProbably not, since it's optimized for scientific workloads (being designed specifically for the K computer replacement) (so it doesn't have texture units, ROPs, etc; you'd have to do too much in software to make it actually render things). However I think the overall design is really good and has enormous potential, if not for graphics at the very least for ML. The vector architectures with extremely high memory bandwidth coming out of Japan recently (NEC SX-Aurora Tsubasa, Fujitsu A64FX) are pretty fascinating.
- 6y ago
- deleted 6y ago[deleted]
- Azrael3000 6y agoI agree. It's a huge issue for software dev companies as it is related to a non-negligible effort to keep your software working efficiently with a large array of GPUs. One potential workaround are libraries such as KOKKOS [0]. Of course it's never going to be as fast as pure optimized CUDA, but if it gets you half the way there, you'll still be faster than using the CPU. Particularly when considering that some of the new CPUs seem to have scaling issues themselves [1] [0] https://github.com/kokkos/kokkos https://github.com/kokkos/kokkos [1] https://www.pugetsystems.com/labs/hpc/Threadripper-3990x-64-core-Parallel-Scaling-1680/ https://www.pugetsystems.com/labs/hpc/Threadripper-3990x-64-...
- Animats 6y agoEach of the internal units is reasonably simple compared to a modern superscalar x86. There are just huge numbers of units. The complexity is in the software needed to keep all those units busy and pumping around data between them. What you're doing down at the bottom of rendering or machine learning are usually very simple computations done a huge number of times. Somewhere above that is the problem of parceling out work to all those hardware resources in a somewhat optimal way. That's the hard problem.