9 ms·
What’s Motivating the Matrix Engine Movement in HPC?
- pavon 6y agoThis is an interesting take. If you look at the current top 10 supercomputers, half of them have GPUs. As as outsider, I've assumed this recent move of adding matrix support and wider SIMD to HPC CPUs as a means to help with the bandwidth problem, not ignore it, by decreasing the need to shuttle data between the CPU and GPU. I wonder what I'm missing.
- rbanffy 6y agoI was very impressed by the performance numbers quoted in the paper for the POWER10.
- Katydid 6y agoSame here but that architecture is getting far less attention than Epyc right now. Seems a bit of a shame.
- dragontamer 6y agoEPYC is actually out, so people can actually play with it. POWER9 made a big splash with Summit, and POWER9 is no bandwidth slouch either. POWER9 also had Talos II so that "normies" could actually get a machine to play with under $10k. Raptor Computing (makers of Talos) haven't said anything about POWER10 support yet. So its hard to get excited about a product that seems impossible to use.
- rbanffy 6y agoWith AMD pressuring Intel, I fear Raptor will be unable to make a price/performance-competitive POWER10 box the same way they did with POWER9. IBM needs to understand that if there's no easy onboarding to a platform, it becomes a legacy one, as new things are built elsewhere.
- tachyonbeam 6y ago> IBM needs to understand that if there's no easy onboarding to a platform, it becomes a legacy one, as new things are built elsewhere. You're absolutely right. 10K is a huge amount of money to spend on a computer, even a workstation. Most startups can't afford that, so they will never run POWER hardware, and the startups of today are the big corporations of tomorrow. POWER will likely disappear just like "minicomputers" did. This makes me think of Apple making their ecosystem increasingly more locked in and restrictive. The result is that Apple devices become increasingly less fun for developers to play with. The end result is that more developers will migrate towards Linux. These people will then be less likely to develop software for Apple.
- rbanffy 6y ago> POWER will likely disappear just like "minicomputers" did. They'll stay with the IBM i, but there isn't much AIX can do that Linux on Xeon can't do as well as. AIX is not like their mainframe business (and even there, they have surrendered to Linux). > These people will then be less likely to develop software for Apple. They still have a pretty good UX for developers and entry-level machines. I'll probably replace my aging Mac Mini with an ARM-based one next year or so. What will really upset me is if MacPorts is no longer supported on ARM. I hope Apple is sponsoring someone ensuring key parts of the 3rd party ecosystem are there or Macs will become second-class developer machines.
- dragontamer 6y agoGPUs simply have more bandwidth than CPUs. GPUs have huge latencies on VRAM, but are fed by GDDR6 or HBM2 at 1TBps at relatively cheap prices. There's no comparison with bandwidth. NVidia NVLink is 300GBps GPU-to-GPU communications. In contrast, AMD EPYC is 50GBps CCX-to-CCX communications. Once again, there's no comparison with bandwidth, the GPUs simply win. GPU-to-GPU is wider than CPU-to-CPU. VRAM-to-GPU is wider than RAM-to-CPU. ------- If you have a problem that cares more about bandwidth than latency, then GPUs are simply the best architecture. Period. The pure compute performance is paired with absurdly huge bandwidth numbers. Most consumer problems are latency-bound. HPC however, is specifically programmed to be bandwidth-bound instead. It takes effort and optimization to get there however.
- tachyonbeam 6y ago> Most consumer problems are latency-bound. Is that even true? I'd argue a lot of what happens on consumer devices can (or could) be done in parallel. There's some need for a fast response, but things like, responding to a button click and updating some internal state, take a trivial amount of computation to implement. Updating your UI in response to that button click, that's again something that can be parallelized.
- dragontamer 6y agoThink of the following line of code: blah = blah->next A simple linked-list traversal: 50-nanoseconds on a typical consumer CPU. This could represent a DOM-tree traversal. Or it could be a Javascript object being allocated. Or it could be the text getting added to the end of your rope-data structure. Or it could be a binary-search (finding a new address to check next). Or a malloc() (which traverses a linked-list to find memory). This dereference happens very often. 50-nanoseconds to hit main-RAM, 10-nanoseconds if L3 cache, 4-nanoseconds if in L2 cache, 1-nanosecond if in L1 cache. This sort of operation is very fast on CPUs, especially if you're cached. Heck, your CPU won't even wait on the result: its going to branch-predict the answer and start executing the next bit of code before it even knows its correct. ---------- That same memory-dereference is 300-nanoseconds from GPU VRAM, and maybe 100-nanoseconds if you're in GPU L1 cache. If you got a tree, its probably going to be far faster to traverse on a CPU. Where the GPU wins is Raytracing: you can have millions of individual tasks traversing the same tree, in parallel, at larger overall bandwidths than a CPU ever could. IE: GPUs can perform 1000 binary searches faster than a CPU can perform 1000 binary searches. But how many applications need 1000 binary searches? Usually, you need 1 binary search, and once you get the result, you need to do something else. (And that result can be branch predicted for even further accelerations to speed).
- stonogo 6y agoIt's almost a tautology -- I know several recent supercomputers that have GPUs not because of mission drive, but to 'inflate' the LINPACK results to satisfy the sponsor's demands for performance numbers. It's hoped the users will adopt the GPUs, but that doesn't always happen; see the discontinued Xeon PHI accelerators for an example of that. When that happens, you've got a lot of idle GPUs...
- jasonwatkinspdx 6y agoSome context on the machine most of these authors worked on would probably help. Fugaku has two really important features: Stacks of HBM on die, and the Scalable Vector Extensions. HBM is used by gpus as well. This gives A64FX comparable raw bandwidth even if the programming model is different. The SVE design is more general purpose than other short vector extensions. It abstracts over lane width / number of lanes at the binary level, and has some bypassing features similar to the old Cray machines that again have the effect of delivering massive bandwidth. The result of this is that A64FX is competitive with GPUs on most HPC workloads, but with a single chip, single programming architecture, and lower overall power consumption. So I'd interpret the author's comments in that context. It's not so much about adding SIMD as a bad idea, but the specifics of how that needs to be implemented, and whether a dedicated coprocessor with a wholly different programming model makes sense vs well designed vector extensions backed by a high bandwidth memory subsystem.
- montereynack 6y agoI have mixed feelings on this article. On the one hand, I know this is a sentiment that I’ve seen echoed amongst some of my colleagues. Simulation codes just don’t FIT, sometimes, into the neat little box that these mature hardware coprocessors try to put them in. It’s easy enough for ad revenue peeps to adjust their data and models to a new architecture, since the only will they’re obeying is their own and the computational reality is more-or-less whatever they want it to be. With simulations a lot of these assumptions go out the door, because now you can’t just disobey fundamental laws when convenient. If you need to go through a calculation on a single core because you have to evaluate every state sequentially, sometimes that’s all that can be done. On the other hand, this article seems to be subtly beating the hardware co-design drum, which in my opinion isn’t always a good idea either. One argument could be made that limiting ourselves to one computational approach actually encourages creativity because it encourages some bright young researcher to come up with a new way of looking at things to make the software better fit the hardware. An argument could also be made that co-design is sometimes a bad idea because it might result in things being shoehorned in when they have no place. I’m certainly guilty of experimenting with FPGA implementations which, at the end of the day took so long to compile they would never be useful. As in all things, I think in this case both “sides” have a little something to offer.
- KKKKkkkk1 6y agoHe points to Intel’s Sapphire Rapids as an example of hype-driven engineering versus the kind that could pay real dividends for broader HPC. “Maybe in their second generation they’ll put high-bandwidth memory in the CPU, but why did that take so long? It’s been available for years. We think this is attributed to LINPACK, for needing higher rankings. And now they’re just thinking about dense linear algebra and not about memory or throughput or how the memory and cache can allow these vector engines to work effectively. That’s just bad engineering. If we continue like this, we’re just going to keep wasting resources.” To be fair, NVIDIA is also guilty of this. Their marketing is highlighting their tensor core units, claiming order-of-magnitude speedups on deep learning workloads, when in practice, workloads that involve convolutions are actually memory bandwidth bound and will not see a significant benefit.
- dragontamer 6y agoIntel had a competitor to high bandwidth RAM on Intel Xeon Phi: the Hybrid Memory Cube. HMC was interesting: the RAM operations could complete out-of-order (if one section of RAM was refreshing, maybe it'd be faster to out-of-order the responses). Too bad it never became popular. HBM / HBM2 still needs to account for refreshes, and still takes place in-order.
- rbanffy 6y agoIt's a shame the Phi failed the way it did. I believe single thread performance has some relationship to the old "there is no substitute for the cubic inch" principle that's applicable to internal combustion engines. The Phi with 16 GB of memory onboard would probably make a very interesting developer workstation. Nothing will make code become more parallel faster than making developers plow their fields with chickens instead of oxen. ;-) (forgive-me Seymour)
- lumost 6y agoI'd bet a Threadripper with 128 GB of memory + NVMe storage would crush a Phi as a workstation.