r/programming • u/MyNameIsTrez • Oct 28 '26
Making SIMD Code Scale to Any Vector Width
https://streamhpc.com/blog/2026-10-28/making-simd-code-scale-to-any-vector-width/
135
Upvotes
r/programming • u/MyNameIsTrez • Oct 28 '26
View all comments
Show parent comment
1
u/YumiYumiYumi Oct 29 '26 edited 29d ago
I personally find calling SVE/RVV as 'variable width' to be odd, since width doesn't really vary during runtime.
The difference with x86 is that it is software specified width, whilst SVE/RVV are hardware specified width (which I find to be more accurate than "variable width").
Being hardware specified, programmers may be encouraged to write code that is amenable to arbitrary widths, but they don't have to. Similarly, programmers could write arbitrary width code for x86 SIMD too, if they choose to do so.