328
submitted 7 months ago by jorge@feddit.cl to c/technology@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] barsoap@lemm.ee 13 points 7 months ago* (last edited 7 months ago)

The Vector extension has been ratified since 2021 it's a standard part of the spec just don't expect a random microcontroller to support it.

The SpacemiT K1 is 64GCVB and RVA22, doesn't say which specific RVA22 there's some without Vector support but it says in "GCVB" so w/e, also, "VLEN 256/128-bit x2 execution width", if I'm parsing that correctly means you either get 256-bit vector registers or set the whole thing to 128 and then get (roughly) twice the ops/s.

And yes it's much easier to emit vector code than to deal with the nightmare that's SIMD. It's as if Intel would've been sensible ages ago and not introduced SIMD but expanded on repnz stosb to make it useful for things other than memcpy. And no Intel has no excuse: Crays existed when they decided on SIMD.

[-] stardreamer@lemmy.blahaj.zone 2 points 7 months ago

How good are the RISC-V vector instructions implementations IRL? I've never heard of them. My experience with ARM is that even on certain data center chips the performance gains are abyssal (when using highly optimized libraries such as dpdk)

[-] barsoap@lemm.ee 5 points 7 months ago* (last edited 7 months ago)

It's bound to differ wildly. Most ARM chips are Contex Asomethings, that is, ARM designs, and those that aren't are designed by companies with lots of resources... but also with mobile and embedded as their primary market so it's not the primary focus. Most RISC-V cores are open source designs and/or created by startups, generally also not targeting HPC. The EU is investing into RISC-V HPC for EuroHPC (that is, supercomputers), you might be able to buy a chip associated with that soonish and try for yourself.

Heck, you can build a microcontroller-class chip that supports vector instructions -- you just have to iterate element by element. Instruction support does imply that the instructions work, not that they're fast.

That should be more on the BLAS side of things though, if you want to packet route I guess wait until Mikrotik ships boards with RISC-V SoCs, I haven't heard anything and definitely not official statements but they're bound to get on the train. They used Tilera in the past and as far as I'm aware the reason they switched away was Tilera overall failing, not because it didn't work for the application. A structurally similar RISC-V chip should be quite easy to design and as it's a standard architecture you don't have to write your own libraries so it's way easier to not go bankrupt doing it. Oh and Tilera of course definitely isn't a Vector chip, it's a "have a gazillion cores on a die, each barely larger than a DSP" kind of approach. You can have a core per pair of ports or whatever it is they're doing.

Another interesting thing would be RISC-V GPUs. They do a lot of memory stuff that makes them so much better at BLAS stuff and vector instructions fit right into that. For proper graphics support you'd still need a custom ISA extension to wire up some odds and ends (say the texture units with their crazy indexing operations) but it's definitely an option... which is unlikely to see HPC scale any time soon as I don't see NVidia, AMD or Intel giving up the architectures they have.

this post was submitted on 04 May 2024
328 points (96.3% liked)

Technology

59708 readers
1447 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS