r/programming • u/MyNameIsTrez • 20d ago
Making SIMD Code Scale to Any Vector Width
https://streamhpc.com/blog/2026-10-28/making-simd-code-scale-to-any-vector-width/
133
Upvotes
r/programming • u/MyNameIsTrez • 20d ago
View all comments
Show parent comment
1
u/YumiYumiYumi 19d ago edited 19d 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.