3 ms·
How about porting to Highway, that gets you AVX-512, NEON and SVE(2) from a single rewrite :)
by janwas 4y ago
How about porting to Highway, that gets you AVX-512, NEON and SVE(2) from a single rewrite :)
- kristianp 4y agohttps://github.com/google/highway https://github.com/google/highway
- chrchang523 4y agoI'd probably use Highway in a new project; thanks for your work on it! In my main existing project, though, Highway-like code already exists as a side effect of supporting 16-byte vectors and AVX2 simultaneously, and I'd also have to give up the buildable-as-C99 property which has occasionally simplified e.g. FFI development.
- janwas 4y ago:) C99 for FFI makes sense. It's pretty common to have a C-like function as the entry point for a SIMD kernel. That means it's feasible to build only the implementation as C++, right?