|
|
|
|
|
by exDM69
115 days ago
|
|
Counter question: why shouldn't it be portable? It's definitely a 80% solution where you occasionally need to drop down to intrinsics (at zero runtime perf cost) for CPU specific instructions. But just having vector types, arithmetic, swizzling, loads and stores will go a long way for basic tasks. And with generics you can write code that is type and width agnostic. No need to rewrite your code of you want to go from SSE to AVX512, just change from f32x4 to f32x16 (or use generics) and you are done. |
|
Because there are platform vendors. And SIMD performance very much depends on the use-case, which is a balance of practicalities and specifications and intended deployment targets ..
I also think this is a deployment problem, not a build problem, but okay ..