|
|
|
|
|
by _chris_
1653 days ago
|
|
Very different. RISC-V's vectors (RVV) are "variable length", so the programmer can request a length and the machine tells you what it can give you. Different machine versions can change the underlying vector size and the code Will Just Work. This is different from "fixed-width SIMD" which has a hard-coded vector length. To make things more challenging for the programmer/compiler, I believe most x86 SIMD versions also don't provide a "mask" register, so you're stuck with using all vector elements (AVX512 added masks). Each has its advantages and disadvantages (esp. on the design complexity vs programmer/compiler interface complexity). RVV also provides a mechanism to reconfigure the register file, ganging logical registers together to get longer effective vector lengths. |
|