Advertisement
Advertisement
β‘ Community Insights
Discussion Sentiment
100% Positive
Analyzed from 168 words in the discussion.
Trending Topics
#portable#simd#performance#auto#vectorization#getting#point#code#jit#hot
Discussion Sentiment
Analyzed from 168 words in the discussion.
Trending Topics
Discussion (6 Comments)Read Original on HackerNews
You can either have performance (=write manual ASM for each platform), or portability, but not both.
What so-called "portable SIMD" libraries give you is "portable auto-vectorization". "Portable performance" is a global property of the algorithm. Relying on auto-vectorization will result in e.g. sub-optimal register spills in practice. The microbenchmarks will look great, though. ;)
Except in languages with a JIT compiler
But yeah to be fair if you are at that point, you probably want to go fully non-portable anyway. Especially with AI.
Has anyone even figured out how to do vector stuff (SVE/RVV) without assembly?