11 ms·
Ascenium wants to reinvent the CPU and kill instruction sets altogether
- incrudible 5y agoHere's a comprehensive list of every time the "magic compiler will make our CPU competitive"-approach worked out:
- dleslie 5y agoICC When Intel shipped a compiler that artificially, and purposefully, crippled performance of resulting binaries when run on an AMD CPU. Not what you had in mind, but that dirty trick compiler did give Intel an advantage.
- incrudible 5y ago> Not what you had in mind, but that dirty trick compiler did give Intel and advantage. You can only pull off that trick if you already effectively own the market. Otherwise nobody would use your compiler, at least not exclusively.
- rbanffy 5y agoThere were dozens of incidents of compilers that looked for known benchmark code and optimized the hell out of those cases. At the time I remember some debate as to whether it was "fair", on one side people saying it was not, on the other people saying that they actually improved benchmark-like code.
- spijdar 5y agoWhile ICC did do AMD processors dirty by intentionally disabling optimizations that they (technically) supported in a clearly subversive move, this "worked" much better as a tactic because ICC did legitimately produce better code for Intel CPUs than either MSVC or GCC, and can still produce better optimizations. At least years ago, if you really wanted to rice up your system on Gentoo, you'd combine ICC with -O3 and get a small but measurable performance bump.
- gnufx 5y agoThe Intel compiler(s) -- I don't know whether ifort and icc are really distinct -- may produce better code than GCC, and vice versa. The bottom line I got for a set of Fortran benchmarks on SKX was essentially a tie with options as similar as I could make them. (It's a set that seemed to be used for marketing proprietary compilers.) If icc is as reliable as ifort, I wouldn't want to build my OS with it.
- fulafel 5y agoIt has somewhat worked out for GPUs, if you phrase it more charitably (eg "our chip needs specialized compilers and programming languages to perfom well, but will pay off well enough that a critical mass of developers will use them"). Not that GPUs and their proprietary fragmented & buggy tooling are that nice for developers even now, 15-20 years into the attempt, and the vast majority of apps still don't bother with it. And of course the whole GPGPU thing was just riding on the wing of gaming for most of its existence so had a really long artificial runway.
- Animats 5y agoYes. This has been tried before. A lot. It's straightforward to put a lot of loosely coupled compute units on a single chip, or at least a single box. The question is, then what? - ILLIAC 4 (64-cpu mainframe, 1970s): "A matrix multiply is a master's thesis, a matrix inversion is a PhD thesis, and a compiler may be beyond the power of the human mind". - Connection Machine. (SIMD in lockstep, which just wasn't that useful.) - NCube (I tried using one of those, 64 CPUs in an array, each with local memory, message passing hardware. It was donated to Stanford because some oil company couldn't find a use for it. Someone got a chess program going, which works as a distributed search problem. - The Cell CPU in the Playstation. (Not enough memory per CPU to do much locally, and slow access to main memory. Tied up the entire staff of Sony Computer Entertainment America for years trying to figure out a way to make it useful.) - Itanium. (I went to a talk once by the compiler group from HP. Optimal instruction ordering for the thing seemed to be NP-hard, without easy approximate solutions.) Those are just the major ones that made it to production. But then came GPUs, which do useful things with a lot of loosely coupled compute units on a single chip. GPUs have turned out to be useful for a reasonable range of compute-heavy tasks other than graphics. They're good for neural nets, which are a simple inner loop with massive parallelism and not too much data sharing. So there may now be a market in this space for architectures which failed at "general purpose computing".
- notacoward 5y agoAlso Multiflow and more recently Convey. http://www.multiflowthebook.com/ http://www.multiflowthebook.com/ https://www.dmagazine.com/publications/d-ceo/2012/december/convey-computer-old-guard-tackles-big-data/ https://www.dmagazine.com/publications/d-ceo/2012/december/c... Multiflow definitely reached production. I even worked at a company that contracted to write some software for them (though I personally wasn't involved). They were not a total flop, but obviously not a stellar long-term success either. I'm not sure if Convey actually reached production, but their approach seems much more similar to what Ascenium is trying to do.
- incrudible 5y ago> The Cell CPU in the Playstation. (Not enough memory per CPU to do much locally, and slow access to main memory. Tied up the entire staff of Sony Computer Entertainment America for years trying to figure out a way to make it useful.) At least towards EOL, developers did figure out what to use it for, like using the massive readback performance on the SRAM for tiled deferred shading: https://de.slideshare.net/DICEStudio/spubased-deferred-shading-in-battlefield-3-for-playstation-3 https://de.slideshare.net/DICEStudio/spubased-deferred-shadi... Good luck teaching that trick to your magic compiler.
- dragontamer 5y agoNVidia's CUDA into PTX into SASS is pretty darn good. The SASS assembly on NVidia's instruction set seems to be manually creating read/write barriers at the assembly program level instead of leaving it up to the decoder. PTX exists as the intermediate step before SASS for a reason: all of that read/write barrier placement is extremely complicated. CUDA cheats by making the programmer do a significant amount of the heavy lifting: the programmer needs to write in an implicitly parallel style. But once written in that manner, the compiler / computer can execute the code in parallel. The biggest win for NVidia was convincing enough programmers to change paradigms and write code differently.
- robmccoll 5y agoExtracting enough fine grain parallelism is hard. Manually creating it is tedious and difficult. Memory is slow. Latency hiding is hard. Ahead-of-time speculation is hard. Runtime speculation is hard. Good luck.
- georgeecollins 5y agoEverything you are saying makes good sense, but I wanted to ask: Is taking a computer program and then re-configuring for some exotic and complex CPU a great problem for AI? I bet people on this forum know why that is / isn't true and I am curious.
- dragontamer 5y agoIf you consider "compiler theory" an AI problem, then sure. But most of us just call that compiler theory. If you're going down into FPGA routing, then maybe we also call that synthesis (slightly different than compilers, but very very similar in problem scope). Today's compilers have an idea of how modern CPUs execute instructions, and optimize accordingly. (Intel's ICC compiler is pretty famous for doing this specifically for Intel chips). Any FPGA synthesis will similarly be written to optimize for resources on the FPGA. ------------ EDIT: Just so that you know... compiler theory and optimization is largely the study of graphs turning into other, provably equivalent but more efficient, graphs. All computer programs can be described as a graph traversal. Reconfiguring the graph to be shorter / smaller / more parallel (more instruction-level parallelism for the CPU to discover), etc. etc. leads to faster execution. You don't really need deep-learning or an AI to do a lot of these graph operations. There's a few NP-complete problems (knapsack problem: minimizing memory moves by optimizing register allocation) along the way that maybe an AI could try to solve. But I have my doubts that throwing a deep-learning AI at NP complete problems is the best strategy (especially given the strength of modern 3SAT solvers)
- gopalv 5y ago> You don't really need deep-learning or an AI to do a lot of these graph operations. That is right, but we're probably not hunting for absolutely optimal solutions every time. It usually boils down to heuristics - everytime there's a graph reorganization problem where a sub-optimal, but better solution is viable, the solutions always involve short-cuts derived from the domain knowledge in there. This is usually very similar to the AI training operations where there's a guess from an engineer, experiments to validate and modify the heuristic guess to improve the results - finally to give up when the results look acceptable. AIs would do well at parameter tuning, at the very least. My register allocation work would have near infinite loops reordering priorities, until I started forcing invariants into the system which didn't exist in the original design. And the usual arguments about "code is compiled once, executed millions of times" doesn't quite apply to a JIT.
- geocrasher 5y agoDo I understand correctly that this reinvention of the CPU moves the microcode to the code being ran (such as an OS kernel) rather than the CPU itself, giving the compiler the responsibility to use the CPU efficiently?
- desireco42 5y agoSo I am not an expert, but from their description, they move more complex parts to compiler... To me that sounds a little bit like Forth on the Chip, just accumulator and some basic instructions? Is this fair to say or I am not understanding it?
- timeu 5y agoThe Next Platform has an interview with the CEO, which goes about more into detail regarding the motivations: https://www.nextplatform.com/2021/07/12/gutting-decades-of-architecture-to-build-a-new-kind-of-processor/ https://www.nextplatform.com/2021/07/12/gutting-decades-of-a...
- taylodl 5y agoWith this processor when you get pwned you get pwned hard - that's what I see happening anyway, but I have no domain knowledge so I could be way off base.
- freemint 5y agoA more technical description: Hardware: DSP slices (Multiply ACcumulate) and look up tables (LUTs) in fixed function blocks connected to registers hooked up to a cross bar switch. Software: LLVM target of what amounts to an FPGA with a ton of DSP slices Company: Has been around for a long time 2005(?) under a slightly different company name, huge marketing push due to raising of funds. Learn more: https://llvm.org/ProjectsWithLLVM/Ascenium.pdf https://llvm.org/ProjectsWithLLVM/Ascenium.pdf
- baybal2 5y agoVery informative. Basically they have reinvented an FPGA with fixed blocks... > The idea of a compiler-based software solution embedded in an architecture would theoretically allow the Aptos processor to interpret workload instructions and distribute them across processing resources in such a way that the amount of work being parallelised is as close as possible to the theoretical maximum, whilst taking advantage of having much lesser architectural inefficiencies than instruction-based processors. Whether there will be an instruction set, or not, you will have to have some kind of convention for the bitstream for the re-programmable logic, and very likely you will re-implement a kind of an instruction to do that with high level of efficiency. Modern CPUs already all run microcode on some kinds of a programmable fabric in the front-end to give some degree of programmability for how the front-end, and back-end interact.
- jcranmer 5y agoThe actual hardware details are kind of danced around a lot in both this article and the somewhat more detailed article it links to (https://www.nextplatform.com/2021/07/12/gutting-decades-of-architecture-to-build-a-new-kind-of-processor/ https://www.nextplatform.com/2021/07/12/gutting-decades-of-a...). From what I can tell, it appears to be a mix between a systolic array and Itanium. The systolic array piece is that it's a grid of (near?) identical ALUs that communicate with adjacent ALUs in lieu of registers. But it also seems that there's an instruction stream element as well, something like the function that each ALU is processing changes every clock cycle or few? It definitely sounds like there's some non-spatial component that requires faster reconfiguration times than the FPGA reconfiguration logic. As for viability, as another commenter points out, GPUs are currently the competitor to beat. And beating them requires either having stellar results in the don't-rewrite-code space or targeting use cases that GPUs don't do well at. The latter cases involve things like divergent branches or irregular/indirect memory accesses, and these cases tend to be handled very poorly by compilers and very well by the standard superscalar architecture anyways.
- femto 5y agoRelated to Reconfigurable Computing? https://en.wikipedia.org/wiki/Reconfigurable_computing https://en.wikipedia.org/wiki/Reconfigurable_computing It was big in the 1990's, but never took off. Maybe it's time has come?
- fouc 5y agoNice, NISC for "No Instruction Set Computing". I can see it possibly disrupting the CPU industry in 10-20 years. Seems like a classic scenario right out of Clayton M. Christensen's "Innovator's Dilemma" book.
- pavlov 5y agoIf you run serverless NoSQL on NISC before the rooster crows, you must go outside and weep bitterly.
- spijdar 5y agoSo I won't pretend to be anywhere close to having the domain knowledge to really understand this, but this feels like a sort of more logical extreme version of the rational behind VLIW processors like Itanium, e.g. "remove hard logic from the microprocessor and put it at the compiler level" It was my understanding that this approach failed, partially because it's really hard to compute/guess certain things about code ahead-of-time, and modern CPUs with their branch predictors, prefetchers and speculative execution do more at runtime than a compiler could effectively do. Has this changed enough for this to be generally useful, or are they hoping to market this for niche use-cases?
- giantrobot 5y agoI think it's both hard to guess things about the code but also the data that's coming in. The "Sufficiently Advanced Compiler" could make a lot of good decisions if it knew ahead of time the shape of the data, e.g. a big uninterrupted batch of fixed transactions. That's why the target for this sort of technology is GPGPU work. The streams of data are very regular and largely a series of batch jobs. For interactive systems with millions of context switches and branches all the "Sufficiently Advanced Compilers" all fall down. There's just not enough commonality between consecutive operations for ahead of time optimizations to occur. Hardware that does great in batch jobs ends up suboptimal for the insanity that is interactive code.
- flatiron 5y agoThis reminded me especially of https://en.m.wikipedia.org/wiki/Transmeta https://en.m.wikipedia.org/wiki/Transmeta
- beginrescueend 5y agoYeah, when I saw it was a Software-Defined Instruction set, I immediately thought of Transmeta, as well.
- mhh__ 5y agoTransmeta is probably the only approach that could really make VLIW work in a general purpose system, I think. Dynamic processors get a good chunk of their speed from being able to (aside from schedule, maybe not as well as a compiler, in the good times, but from being able to re-schedule in adverse conditions) - if you have the power of software to be able to do that speculation then I think it could work. Hard to know with Transmeta because they had to implement X86 which is a legal minefield - FWIW I've read a lot of Transmeta engineers saying that they were completely sold on the idea but just couldn't make it stick in time - I'm too young to have been around when it was being produced so I don't know.
- ginko 5y ago>The company, helmed by Peter Foley, CEO and co-founder, who previously worked on Apple's Apple I and Apple II computers as well as a long list of hardware-design focused companies. This doesn't seem right.. As far as I know the Apple I was pretty much exclusively designed by Steve Wozniak.
- Taniwha 5y agoI've worked with Pete, he's the real deal, worked on early MAC hardware, did the 'hobbit' chip - a Crisp implementation intended for the Newton (cancelled after working silicon came back)
- GeorgeTirebiter 5y agoHobbit was used by EO for the EO 440 and EO 880. https://en.wikipedia.org/wiki/EO_Personal_Communicator https://en.wikipedia.org/wiki/EO_Personal_Communicator and the chips, for their time, were astounding: https://en.wikipedia.org/wiki/AT%26T_Hobbit https://en.wikipedia.org/wiki/AT%26T_Hobbit
- Taniwha 5y agoI don't think that they used the chip that Pete did for Apple
- luma 5y agoAccording to his LinkedIn, he "Developed chips for the Mac and Mac II, including the Apple Sound Chip." Presumably the author here didn't catch the difference between the Mac and the original Apple computers.
- homarp 5y agohttp://www.byrdsight.com/apple-macintosh/ http://www.byrdsight.com/apple-macintosh/ describes his work at Apple. Nothing on Apple 1, mostly on Mac
- mkj 5y agoAre the hyperscalers (proclaimed target market?) likely to be willing to give up control of the compiler stack to a third party like that? Generally the trend seems to be keeping software expertise in-house.
- rbanffy 5y agoThey could write their own compilers, as long as the thing is well documented.
- notacoward 5y agoThey'll insist that the toolchain be open source, then they'll make their own local modifications which they "never get around to" releasing back.
- jerf 5y agoI post this in the spirit of being corrected if I am wrong, the Internet's core skill. If I'm reading this correctly, the competition for this technology isn't CPUs, it's GPUs. If that's the case, it seems like they'd be able to show a lot of artificially inflated numbers vs. CPUs simply by running already-known-GPU-heavy workloads on their hardware vs. CPUs and show massive performance gains vs. the CPUs... but what about an optimal GPU algorithm? Traditionally, making the hardware that can support reconfigurability at a highly granular level (FPGAs, for instance) has never been able to catch up with conventional silicon, because the you can't recover the quite significant costs of all that reconfigurability with improved architecture. The conventional silicon will still beat you with much faster speeds even if you take a penalty vs. some theoretical maximum they could have achieved with some other architecture. Plus, again, GPUs really cut into the whole space of "things CPU can't do well". They haven't claimed the whole space, but they certainly put their marker down on the second-most profitable segment of that space. Between a strong CPU and a strong GPU you've got quite a lot of computing power across a very wide set of possible computation tasks. I am not an expert in this space, but it seems like the only algorithms I've seen lately people proposing custom hardware for at scale are neural network evaluation. By "at scale", I mean, there's always "inner loop" sorts of places where someone has some specific task they need an ASIC for, encryption being one of the classic examples of something that has swung back and forth between being done in CPUs and being done in ASICs for decades now. But those problems aren't really a candidate for this sort of tech because they are so in need of hyperoptimization that they do in fact go straight to ASICs. It doesn't seem to me like there's a huge middle ground here anymore between stuff worth dedicating the effort to make ASICs for (which almost by definition will outperform anything else), and the stuff covered by some combination of CPU & GPU. So... how am I misreading this, oh great and mightily contentious Internet?
- pclmulqdq 5y agoYou are correct that the main competing technology is throughput compute (GPUs, TPUs, ML processors) rather than "general-purpose" CPU-style compute with batch size of 1. The way we use CPUs is fairly unique, though, where we time share a lot of different code on each core of a system. Trying to move CPU applications to an FPGA-style device would be a disaster. I used to believe that FPGAs could compete with GPUs in throughput compute cases thanks to high-level synthesis and OpenCL, but it looks like most applications have gone with something more ASIC-like than general-purpose (eg TPUs and matrix units in GPUs for ML).
- denton-scratch 5y agoWhen they say "kill instruction sets", do they mean "abandon trying to replicate the instruction sets of other manufacturers"? I don't grok how a processor could not have instructions; I thought an instruction set was simply the set of instructions implemented by some processor model. I read the article because I was intrigued at the idea of a processor with no instructions. Or perhaps, with some kind of fluid instruction set, or loadable instruction set. But that doesn't seem to be what it's about; the article says that what they want to abandon is "deep pipelines".
- gfody 5y agothere are whole other paradigms, eg https://m.youtube.com/watch?v=O3tVctB_VSU https://m.youtube.com/watch?v=O3tVctB_VSU