9 ms·
Is RISC-V ready for HPC? Evaluating the 64-core Sophon SG2042 RISC-V CPU
- not_your_vase 3y agoThis is how an academic paper looks like nowadays? I thought it would fit Tom's Hardware more... maybe I'm getting old.
- j16sdiz 3y agoThese are workshops paper. ACM workshops were always like that.
- anewhnaccount2 3y agoThe other thing to look at is the affiliations. All these people work for https://www.epcc.ed.ac.uk/ https://www.epcc.ed.ac.uk/ i.e. they are working for a HPC facility attached to a university.
- not_your_vase 3y agoI see, that's a bit of a relief. Thanks for the clarification. Though I still think it should go to Tom's Hw or ServeTheHome instead of arxiv :)
- tromp 3y agoClosely related: discussion of the Milk-V Pioneer workstation employing this chip [1]. [1] https://news.ycombinator.com/item?id=38553647 https://news.ycombinator.com/item?id=38553647
- asystole 3y agoDoes Betteridge's law apply here?
- wongarsu 3y agoyes
- Razengan 3y agoI'm sure it's far from being a sophon.. :)
- l3x4ur1n 3y agoThree body problem
- rwmj 3y agoThis particular chip is very slow, so definitely not. However Sophgo are going to switch the cores to using SiFive P670 in the next iteration (SG2380) and those cores have much faster single thread performance.
- justinclift 3y agoIs that still happening after SiFive let go a bunch of staff recently? https://news.ycombinator.com/item?id=37996295 https://news.ycombinator.com/item?id=37996295
- davidlt 3y agoTo my understanding SiFive continues to offer their selection of core IP. Anyways, I would assume any existing contract would have to be fulfilled for various legal reasons. SG2042 itself is T-HEAD C920 design which is a mess, and might not be even called a RISC-V compliant design. We are kinda stuck it existing and being used in various chips. There are other design issues discovered IIRC (atomic might not work properly [at least on the kernel side workarounds required]; floating point failures in glibc testsuite because FP not being compliant). SG2044 is scheduled for the next year (2024). Not many details are known: 64 cores, 8 DDR controller, 3x memory bandwidth, vector v1.0 support, 2x PCIe (unknown what that means, Gen3 -> Gen4? More lanes?). The cores are unknown, but SG2038 is SiFive P670. T-HEAD has C908 that support vectors v1.0 (and solves some other issues), but that's a smaller core. Not a replacement for C910/C920.
- justinclift 3y agoThanks, that's good info. :)
- photonbeam 3y agoThis is dated after the layoffs, so presumably yes https://www.sifive.com/press/sophgo-licenses-sifive-risc-v-processor-cores-to-drive https://www.sifive.com/press/sophgo-licenses-sifive-risc-v-p...
- deleted 3y ago
- sylware 3y agoWhat's very nice about RISC-V 64bits: code assembly once, run it everywhere, almost quite literaly... no absurdely and grotesquely massive and complex compilers anywhere, no planned obsolescence, feature creeps on computer language syntax nowhere to be found, ultra stable in time, near 0 SDK.
- magicalhippo 3y agoThat's not really true though is it? A lot of the speed and interesting bits for HPC would come in the form of ISA extensions, and the paper even mentions challenges in this area due to the chip only supporting version 0.7.1 of the RVV vectorisation extension. Regardless, I imagine in HPC you'll want to recompile anyway to get the most bang for your buck, unless you're doing a short run. Why throw away performance if you'll be running your code for days or months?
- sylware 3y agoWell, this is much more true that with classic computer languages. That's more than enough when you look at the desastrous stability of classic computer languages. Not even reasonable with C, and I have strong suspicions about rust syntax (it seems it became not much less complex and insane than c++, wrong?). Most other real life computer language syntaxes are hopeless if you are honest with yourself, that on even less than 10 years cycles (blame ISO and compiler extensions). If one cannot write reasonably a naive but real-life alternative compiler for a computer language syntax, which would be REALLY stable in time -> full frontal compiler planned obsolescence and feature creep. That's why risc-v has a very high potential: roughly speaking, you exit the compilers, which is a very good thing. That's why I wish RISC-V to succeed, we all know once some code paths are assembly written, we get a very strong independence of those absurdely and grotesquely massive and complex compilers, that with a world wide/PI lock free standard ISA: this is priceless. I see risc-v compiler support as legacy support. You can even get a nice middleground with high level language program interpreters written directly in 64bits risc-v assembly. Think about a python3 interpreter, a javascript interpreter, lua, etc etc...
- 3y ago
- tw1984 3y agoyou don't need a paper from a group of UK developers to understand its performance & potential. The processor is made by a Chinese startup, as China is fighting an all out semiconductor war with the US, there is literally unlimited public & private investments that could be poured into such a 64 cores processor if it is indeed remotely on par with the SOFA of x86. Any Chinese company holding such crown jewel would spend billions of $ on PR to get everyone in China to know its name to further milk more investments. As someone who live in China and has been in the area for decades, the only reason why I have not heard about it until today is pretty obvious - it is a toy implementation no one cares about. There is actually a dedicated term in Chinese describing such junk - “落后产能”, which means backward production capacity. They knew the expected performance, they knew it is going to be laughed by peers in the area, but they still did it for a good reason - to just fool certain low IQ investors in China to get a free ride of the whole RISC-V thing. Whoever behind this laughable release should really be ashamed - what is the next move? glue together maybe 1024 of those 8051 "cores" and claim it has built a supercomputer on a chip?
- tw1984 3y ago[flagged]
- RCitronsBroker 3y agonow that’s an elaborate way to stomach not everyone sharing your opinions
- kragen 3y agoyou evidently do need a paper from a group of uk developers to understand that it is not junk; as the abstract explains, it's 5–10 times as fast as other risc-v hardware, and even performs better on some workloads than "the x86 high performance CPUs under test", though it still lags behind them by a factor of 4–8 on average this is enormous progress, and much more convincing than performance projections from simulations carried out by the chip's own designers
- tw1984 3y ago
- tw1984 3y agoJust realized that the chip is probably backed by Alibaba, it uses the core built by Alibaba, that is the company behind most of those fake stuff sold online. Its founder openly challenged the financial system in China as he argued that his algorithm targets and profits from the poorest more efficiently than transitional banks! Now everything can be explained. What you can expect from Alibaba?
- LoganDark 3y agoI think it's amazing that RISC-V is advancing at such a pace that there are already RISC-V cores that are "only" ten times slower than similarly-SotA x86 cores.
- bee_rider 3y agoConsidering that they are comparing against an Icelake Xeon with AVX-512, it is pretty decent. I mean the answer is basically no, it isn’t ready. But x86 has a pretty huge head start, RISC-V had to start somewhere.
- brucehoult 3y ago4x slower. It's only 10x slower if you can use SIMD on the x86 but don't use the Vector instructions the RISC-V has. By this time next year the speed difference in shipping machines will be reduced to 2x. Speed parity in probably 2026 -- or maybe 2020 x86 speed in 2026 ... close enough that it doesn't matter for most purposes anyway.
- ibobev 3y agoSophon CPU? Is this a reference to "The Three-Body Problem" novel?
- izzydata 3y agoThose transistors better be down to the size of protons at least.
- ace2358 3y agoIf they’re not that small, just fold up some dimensions until it is.
- thewakalix 3y agoI can guarantee they are at least as large as protons.
- mesham 3y agoHi all - I'm one of the authors of the paper so thought I would post my thoughts. Firstly, thanks for the interest in the paper - it's really nice to have this sort of discussion. As it's been highlighted in the comments this is a workshop paper (the workshop on RISC-V for HPC last month at SC) which allows us to focus on some of the more practical aspects compared to, for instance, a main-track conference or journal etc. Given the availability of this 64-core RISC-V CPU we felt that it would be interesting to, independent of the manufacturer, explore some of the performance and try and answer the question around how realistic a proposition this is for HPC workloads (I suppose really trying to preempt questions from the HPC community around whether this 64-core CPU moves us closer to RISC-V being a realistic choice for HPC). Obviously the numbers are in the paper so you can draw your own conclusions, but we were pretty impressed by the results overall - both in relation to the SG2042 itself and also more widely what this means for RISC-V. The SG2042 isn't perfect (as has been highlighted here, it only supports RVV 0.7.1 for instance), but my feeling is that it's a significant step forward for the RISC-V community. For the SG2042 specifically, as it's been highlighted in these comments, it is within the same order of magnitude (pretty much anyway depending on which number(s) you look at) as well established x86 high-performance CPUs (and we threw in an old Sandybridge CPU too as a bit of a baseline). I think that's pretty impressive, after all the SG2042 is a first-generation RISC-V CPU from Sophon being compared against mature x86 CPUs. As someone else has said they need to start somewhere and are now building on this as illustrated by their roadmap. Furthermore, something we didn't consider in the paper was price - this is a tricky one as it can depend on where you are geographically with exchange rate etc, but I think that the SG2042 is probably a fair bit cheaper than some of the x86 CPUs we compared against too (when they were new anyway). What I think is pretty phenomenal here is the pace of change for RISC-V more widely. At the start of 2023 the best commodity available RISC-V hardware that we could get was the 4-core VisionFive V2. As we show in the paper, each C920 core in the SG2042 is quite a bit faster for the benchmarks than the U74 in the V2, but also the SG2042 is providing 64 vs 4 cores. This is within the space of 12 months, or so, and there seem to be a whole load of new high performance RISC-V hardware planned for general availability in 2024 (from a range of manufacturers across the globe) including new CPUs and high-core count accelerators (e.g. see the slides of the four vendor talks at the workshop we presented this paper at https://riscv.epcc.ed.ac.uk/community/sc23-workshop/ https://riscv.epcc.ed.ac.uk/community/sc23-workshop/ ). So I think it's really interesting to see the trajectory here of RISC-V to date and over the next few years to track whether this pace continues (or even accelerates!) My personal feeling is that unless it unlocks some very significant new capabilities (which to be fair is possible), using RISC-V CPUs instead of a x86 CPUs in supercomputers will probably be a tough sell in the short term. However, I think there is a lot of potential on the accelerator side of things and I suspect this is where we will start seeing RISC-V emerge for HPC initially (and maybe by stealth where people are unaware that their compute or in-network accelerators are leveraging RISC-V in some way).
- cardanome 3y agoI don't really get why people are so excited about RISC-V. An open ISA doesn't really offer any additional freedoms to the user. It does not mean we get truly open hardware. This whole thing is just about Chinese companies not wanting to pay for ARM licenses anymore. Which is good for them but I don't get the excitement from tech people. Even if a RISC-V CPU would someday offer the same performance for the same price than an x86-64 counterpart, it would be a strictly worse deal, as software support will be so much worse. The x86 monoculture was an amazing time to live in and helped us enjoy so much backwards compatibility. The promised lower power-consumption might be nice but we will have to see how much the ISA really matters for that.
- 2OEH8eoCRo0 3y agoI don't get why people trust PRC-fabbed silicon. You couldn't pay me to put anything that comes from these fabs on my home network.
- afr0ck 3y agoFrom a tech-nerd point of view, here is the reason why I am so excited about RISC-V. RISC-V means there is a possibility of creating a completely open source implementation of an industry-grade microprocessor, just like the Linux kernel did for operating systems, democratising the business of building advanced microprocessors. I can't work for Intel or Arm design teams. Hardware is not my main job and entry barrier to those companies is so high (without mentioning age and geographic barriers). However, I would have loved if there was a real, industrial, free and open implementation of a microprocessor where you collaborate with smart people all over the world to solve interesting problems and implement advanced hardware designs and algorithms.
- fwsgonzo 3y agoI feel the same way. I think RISC-V has changed my opinion on the hardware aspect of things, and now for the first time I want to try to create a simple CPU at home. There is even a simpler RV32E spec, for those (like me) with little hardware experience. Perhaps RV32E is reasonable to start with? https://five-embeddev.com/riscv-isa-manual/latest/rv32e.html https://five-embeddev.com/riscv-isa-manual/latest/rv32e.html