News for hackers. Stuff that matters.
Re:Vectorization: Introduction by bee_rider on Friday June 02, 2023 @12:32AM (#36161091)
It seems odd in a scientific computing class to not mention classic cray style vectors. I mean, they haven’t been popular for a while, but you never know, RISC-V might bring them back.
Re:Vectorization: Introduction by Joker_vD on Friday June 02, 2023 @03:52AM (#36162351)
I thought I was crazy when looking at all those vector extensions piling up made me think "why not just have some generic-sized vector instructions, and then let the CPU to sort out what is the largest chunk size it actually supports internally" but apparently no, I am not! It was actually been done before and we might even have that again in the future. That's nice.
Re:Vectorization: Introduction by r3ndr on Friday June 02, 2023 @07:00AM (#36163566)
ARM's newer SVE/SVE2 instructions can do something like this now. SVE allows the vector length to vary between 128 and 2048 bits, at 128 bit increments. RISC-V's vector RVV instructions also allow the vector length to vary across different CPU implementations. This way, the same RVV vector code can run on different CPUs having different vector lengths.