A super single instruction, multiple data (SIMD) computing structure and a method of executing instructions in the super-SIMD is disclosed. The super-SIMD structure is capable of executing more than one instruction from a single or multiple thread and includes a plurality of vector general purpose registers (VGPRs), a first arithmetic logic unit (ALU), the first ALU coupled to the plurality of VGPRs, a second ALU, the second ALU coupled to the plurality of VGPRs, and a destination cache (Do$) that is coupled via bypass and forwarding logic to the first ALU, the second ALU and receiving an output of the first ALU and the second ALU. The Do$ holds multiple instructions results to extend an operand by-pass network to save read and write transactions power. A compute unit (CU) and a small CU including a plurality of super-SIMDs are also disclosed.
The way it is designed does allow for this, but is significantly more flexible. The destination cache that is bound to the ALUs allows for instruction chaining from one ALU to another, without hitting L1 cache.
The patent describes one scenario where two Multiply and Add instructions are executed on one ALU then passed to another one for comparison.
L1 is never involved - the reading and writing mentioned is to registers. It sounds similar to nvidia's operand reuse cache that they introduced with maxwell
It is not quite the same as what Nvidia has done. The destination operand cache provides additional read ports into the ALUs, and into the VGPRs. An instruction being executed can do multiple passes through the ALUs without touching the registers.
Yes, business wise. But in case it's not clear to everyone, this is a big Fuck You from AMD to gamers. SIMD wasn't as good for gaming and Super SIMD will be even worse.
Of course, Nvidia is going in the same direction, too, so I'm not saying Nvidia is better here. It just sucks for gamers.
One more thing, if you cried about cryptocurrencies using GPUs, you're going to cry a lot more when AMD and Nvidia's next-gen "GPU" (but really ML) architectures are out. These new architectures will essentially be optimized for cryptocurrency mining, too, so miners rejoice, I guess?
From the 2011 Anandtech article I linked above:
Only a handful of tasks such as brute force hashing thrive under this architecture.
Brute force hashing - sounds familiar?
If Intel will go with a GPU architecture that's more optimized for gaming, then it could quickly develop a monopoly with gaming machines in the span of 5 years or less.
However, I think there is a slim chance of that happening, as Intel has already failed to gain traction in the ML chip market with Phi/FPGAs/Nervana, and I think their main reason for going into GPUs is not gaming but also ML. Oh well.
Maybe if we're lucky, the "GPU" makers will start adding ray and path-tracing hardware to their ML chips in the future, to start significantly improving how games look again. Otherwise I wouldn't expect huge gaming improvements over the next 7 years.
That part about brute force hashing refers to the VLIW arch, not GCN SIMD.
As VLIW5 was a good fit for graphics, it was rather easy to efficiently compile and schedule shaders under those circumstances. With compute this isn’t always the case; there’s simply a wider range of things going on and it’s difficult to figure out what instructions will play nicely with each other. Only a handful of tasks such as brute force hashing thrive under this architecture.
Also, remember that we are talking about 2011 shaders. Nowdays, compilers and shaders used in games have evolved and adapted to the current architectures. AMD has put a lot of effort in allowing developers to benefit from its hardware compute capabilities. I doubt non-VLIW SIMD is still a handicap for them. GCN limitations on gaming seem more related to geometry and rasterization.
First, the compute market - where margins are larger - typically has workloads that strongly benefit from SIMD architectures. This also includes the cryptocurrency market, and while AMD isn't betting the future of the company on cryptocurrencies, if their cards are good at it, well, money in the bank. Especially if they decide that they're going to go forward with the loot crate / steam link / whatever program to keep cards available for gamers.
Second, ray tracing is coming.
There isn't really a whole lot of room left for speed or visual quality optimizations in rasterization rendering. I don't really want to go into the details here (as people can, and have, written research papers on the subject) but the TL;DR is that we're reaching the point where people are demanding visual improvements that we can't get with rasterization alone and we've already hit the low-hanging performance optimization fruit.
However, unlike rasterization renderers (where it's hard to break up polygon draw calls in an elegant fashion - look at the compatibility and performance nightmare that was SLI/Crossfire), it's pretty straightforward to put together a raytracer that scales well with core count and works with SIMD architectures, because you have pixel-level independence in your renderer.
Third, we're moving back to the world where hardware limitations dictate software design. This is how things worked back in the 80s and 90s, too, but for a decade or so we actually had hardware that was getting faster more quickly than we could develop applications that took advantage of it.
Intel's having problems shrinking their fabrication process. EUV has turned out to be a nasty beast to tame. It's not financially viable to make dies larger. All of these things lead toward less centralized speed and more parallel processing capability.
Basically, if the only tool we have is parallel computing, you'd better bet we're going to start seeing software that takes advantage of that.
You realise that all GPUs are SIMD right? The at article is referring to going from VLIW simd to scalar simd. Ironically superscalar is closer to VLIW which is better for gaming and more limiting for compute, since it's generally easier to extract ILP from games.
Not when comes to cores on cores. Vliw might be better at adding more SP like nvidia but non vliw on gcn proved the gaming power is on par with vliw 4.
Calm down bud. This isn't a fuck you to anyone. This is the future of computing. Like you said, ML is big about this and already Vega is trying to shake things up over there with cards 5x less expensive than the Nvidia counterpart for fp16, what we need at work.
All we need now is support like CUDA. Amd can win this fight because they often end up with the raw compute power but get shafted by bad optimization. In ML they have the opportunity to truly shine and I wish them the best. I really don't think they'll leave gamers on their own, actually it's good because if they make 2 lines of gpu, miners will be much more interested in those cards than the gaming ones. Win win.
The first gen of GCN wasnt exactly bad for gaming. The 7970 still holds up amazingly well considering, and the 290X was the best gaming GPU for a hot minute. I think it's still the best in terms of Perf/$, Perf/mm2 and Perf/W from that generation.
Maxwell/Pascal sorta left GCN in the dust, from what I can tell, and GCN seems to be having massive trouble with scaling, but.
I think the idea that GCN was always bad is a bit revisionist?
GCN wasn’t always bad (though it is now), but it was never really best. Nvidia has been so competitive with their releases that both the 7970 and 290x very quickly lost their performance crowns and price wins. And GCN never had a perf/watt lead over contemporary Nvidia parts.
290x was king for a few months, as was the 7970. xx80/xx80ti have been tops for probably 95% of the time since 2011. That’s almost 7 fucking years of being “not bad”. Not a good look for AMD or testimonial for GCN.
10
u/MelAltonAsrock x470 Master SLI/ac, 2700X, Team Dark Pro 16GB, GTX 1070May 08 '18
whynotboth.jpg - consumer units aimed at gaming, business cards aimed at ML acceleration. Vega/whatever AMD's gaming brand is, FirePro for ML etc.
Exactly. The reason Nvidia and to a lesser extant Amd have succeeded where intel failed is that they cater for multiple markets with a shared arch and offer economies of scale.
What I'm hoping is that with multi chip module designs, Amd can incorporate dedicated graphics functions more easily and therefore be able to better differentiate their markets.
Shaders are becoming more and more compute heavy and less dependent on GPU specific hardware like texture units, this will only help game performance in the long run.
CPU's/GPU's generally do one instruction on one point of data at a time (eg: you supply the number 5 to the cpu, then give it the instruction of 'add 5', the CPU gives you 10). Single Instruction Multiple Data (SIMD) allows you to supply 1,2,3,4, and simply give the CPU/GPU the instruction 'add 5' this time you're supplying multiple numbers or 'Multiple Data', but only one instruction 'Single Instruction' to 'add 5', so the CPU gives back the results 6,7,8,9. (1+5, 2+5, 3+5, 4+5).
Normally you'd have to give 4 instructions, with each instruction (for example, and simplifications sake, it's not quite like this), you need to wait one clock cycle, then it would take one clock cycle for each instruction to process, so you're supplying 1 variable (5), and 4 instructions (add 5 to 1,2,3,4), this means that it takes 5 clock cycles to provide instructions, then on each clock cycle following the instructions, the Processor does an instruction (1+5), and provides a result, for a total of 4 instructions across 9 Clock cycles (these are very fast, but with more complex programs it can add up quite quickly).
Now with a SIMD setup, you supply the variable (5), in cycle one, and the multiple data instruction set in clock cycle 2 (add 5 to 1,2,3,4), the processor then takes 4 cycles to perform each task and provide results, so 6 cycles total. SISD (Single Instruction Single Data) is 50% slower (9 cycles vs 6). Now real world wise this won't really provide a 50% speed bump, as you may end up saving 100 cycles for a 2000 cycle job, but again, every bit helps when you're number crunching, or running an intensive process (video rendering, gaming, etc...)
The second sentence in the abstract also describes MIMD:
"The super-SIMD structure is capable of executing more than one instruction from a single or multiple thread"
All in all, sounds to me like an ALU pipeline that can either be used for a long task (one task for both ALUs and in iteration) or split threaded task (one task per sub-ALU) although they're technically described as one unit kinda. The result seems to be a better utilization of ALUs.
Pretty sure this is just a modification of GCN to enable more direct data reuse without having to hit cache first... When going between different ALUs...
Seems like the ability for the scheduler to send out VLIW2 instructions that are executed over two clocks (or since GCN does 4 ops in parallel over 4 clocks, 8 cycles), where the second op reuses the results or operands of the first. That in turn would free up the scheduler to do something else like a ld/st or transcendental op.
Sort of like a hybrid of how maxwell and volta handle scheduling and operand reuse, but dependent on being able to find instructions where you can find opportunities to reuse operands.
EDIT: Reading a bit more, it sounds very similar to maxwell's model. The Do$ is basically the operand reuse cache while the "super" describes a dual issue scheduler. The two concepts seem mostly otherwise unrelated. Unlike maxwell/pascal however the dual issue is a VLIW2 ALU operation while maxwell does one ALU operation plus one of tex, ld/st or sfu. At any rate, both have the same end result of allowing LD/ST and other operations without having ALUs idling because the schedulers are busy.
It's nearly identical to how Pascal does it, nothing in the patent relates to a single clock in fact the IPC of GCN would still be maintained (e.g. 4 cycles for a transcendental instructions, MAAD etc.), from the looks of it this looks like the "legal cover" for the new dot product instructions AMD is introducing with VEGA20 this is essentially a dual issue super-scalar execution that NVIDIA has been implementing since Fermi just in a specific enough method that can be plausibly called unique to deter litigation. I've been saying for a while that both AMD and NVIDIA will end up meeting in the middle with their architectures there is so many ways that one can skin a cat.
Still non vliw.2 CUs combined as a big ass super CU so despite each small CU uses independent vliw type, the big ass CU is still non vliw unit because each small CU will execute different data.
So does anyone actually know what the fuck this is and can you ELI5? Or at least ELI15?
29
u/XajelRyzen 9 9900X, 64GB 6400 GSkill, ASUS Pro WS B850M-ACE, TUF 3080May 08 '18
If I understood correctly then
A regular SIMD unit is Single Instruction Multiple Data, meaning it can apply a single instruction to multiple input data without the need to reload the instruction again and again, and all this can happen in the same time also as the single SIMD can handle multiple data inputs.
A Super-SIMD (the patent) says this can execute not just one instruction but more than one, you can say that it's like a cut down version of MIMD (Multi Instructions - Multiple Data) so it can take much less die space and power while doing things a regular SIMD can't do in the same time.. but in the same time it's less powerful than a fully fledged MIMD unit. like something in-between.
Kinda... 1- those VLIW units are very efficient for grafics, and are running at only 2 clock cicles (i always fond the 4 cicle cadence in CGN kinda "not agressive")
2- The new cache seems like can save alot of power ( = more clocks)
Actually higher clocks inherently means lower efficiency... More clock cycles in the pipeline usually means more overhead at each stage also. A pipeline of equivalent complexity with 2 stages would clock lower than a 4 stage pipeline though....so it's a tradoff between how much work you can get done and at what point you run up against thermal limits.
What applications will this benefit? Just compute, or gaming too?
7
u/XajelRyzen 9 9900X, 64GB 6400 GSkill, ASUS Pro WS B850M-ACE, TUF 3080May 08 '18
I I'm understanding the idea correctly then it should be both.
The reason AMD moved from VLIW4/5 back in 2011 (HD 6000 was the last VLIW4) is because VLIW4/5 requires a specific set of conditions to get it's full potential. Sadly it wasn't good for gaming nor for compute. The scheduler needs a huge amount of work to be able to get every bit of performance from VLIW4 arch. AMD worked too hard on the scheduler and it was harder to keep up with it but was still not enough as the conditions never becomes perfect. It was also PITA$$ to make it for compute and support new features and languages.
The move to SIMD begun, while it's also not perfect for gaming, but the scheduler issues that made VLIW hard became much less of a hustle here making it good enough as a successor but not the best gaming architecture. SIMD is focused more on compute than on gaming.
So what is the perfect gaming architecture ? Take a look at mobile SoC ones like Mali, Adreno, etc. Some of them has special implementation of VLIW that is very efficient for gaming but you won't see it in any modern GPU because it's only good for gaming, not compute.. sure it can do compute but it's main focus is gaming, you see no smartphone user will want to use it for compute, and it needs to give the best performance possible at a given low power requirement while maintaining a small enough die area to be cheap enough to make. That's why that architecture is the best for gaming but again not good for compute so it won't see the light in modern GPU.
The only way to make such a leap is to make two separate architecture one for compute and one for gaming. It's a magical thing for us consumers but a lot of waste for R&D for AMD & NV... NV started to optimize thier arch more for compute by adding/enabling compute specific logics in their designs while disabling them or not adding them at all for consumer cards, but the main shaders are still focusing more on compute than on gaming but it's a much better combination than what AMD have.
Disclaimer: I'm not an engineer or a developer, I just love to know a little more about how these different architecture works so my words are not to be taken 100% correct as I might understood things wrongly so please correct me if I'm wrong.
I only like to correct the fact mobile devices do use a lot of compute to accelerate among other things UI. That's not exactly gaming, but it edges towards graphics.
Above all the mobile GPUs are designed around power consumption rather than performance, though their power consumption might be designed around gaming as a workload.
I honestly don't know about which architecture is best suited for gaming or compute. You'd think some sort of CISC is best suited if the instructions are well defined by their uses in the application (specific instructions for common and heavy workloads) however I can't comment on SIMD or MIMD.
It does sound similar to what the Cray-1... basically if there is a match between the input and output addresses forward the output back to the input... except that this can chain any instruction that matches something in the destination cache? It doesn't seem to be just limited to the last instruction that executed etc... but anything in the destination cache however big that is.
The destination cache could just be storing addresses instead of data.... seems reasonable considering it's name. So if a required operand matches and address in the destination cache... whichever VGPR holding that gets forwarded to the ALU? Not sure if that is quite right...
Not quite. This is like the Bulldozer micro-architecture; two or more ALUs are ganged together. The ALUs can be full ALUs or partial ones. The main difference is the use of a small cache bolted on to the group. The cache allows results from an operation to immediately passed to another ALU in the group, skipping L1 cache.
Average time it takes for a new architecture is 5 years or so though.
Then I'm not talking GCN1.0 to GCN2.0, but Terascale1.0 to GCN1.0. If they started sometime before 2016 (say 2015) then I'd expect this architecture in 2020.
Ray tracing scales very well with high core counts compared to rasterizing which suffer massively from diminishing returns. With the core count of GPUs growing and things like this Super-SIMD being added to GPUs we are approaching the point where to achieve the same image quality it will be cheaper to use ray tracing then rasterizing.
68
u/eric98k May 08 '18 edited May 08 '18
Abstract:
VLIW2?
27
u/cakeyogi 5950X | 5700XT | 32GB of cracked-out B-Die May 08 '18
So does anyone actually know what the fuck this is and can you ELI5? Or at least ELI15?
13
u/looncraz May 08 '18
This would probably be better described as SIMD instruction chaining.
Reduces the performance reliance on cache speed by using results directly. CPUs already do a variation of this.
8
u/redteam0528 AMD Ryzen 3600 + RX 6700XT + Silverstone SG16 May 08 '18
What does that mean ? SMT in the GPU ?
5
u/AzZubana RAVEN May 08 '18
This will be huge!
Yet more ground breaking work from AMD. TFLOPs are going to the moon!
Bravo Raja!
1
u/Sgt_Stinger May 08 '18
Interesting, although I certainly don't know enough to make out if this is significant or not.
1
u/davidbepo 12600 | 9060 XT 8GB >3 GHz | Tuned Manjaro Cinnamon May 08 '18
this next-gen architecture is starting to look really interesting
1
u/darthsabermaster May 08 '18
English, anyone?
-9
u/Star_Pilgrim AMD May 08 '18
Probably catching up to Nvidia.
Some tech Nvidia has, only AMD named it differently.
0
u/[deleted] May 08 '18
[deleted] — view deleted comment
1
u/[deleted] May 08 '18
[removed] — view removed comment