Research Article
Inastemp: A Novel Intrinsics-as-Template Library for Portable SIMD-Vectorization
Code 9
Automatic selection of the best available instruction set.
| (1) template <class VecType> | | (2) void user_kernel(/ parameters /) | | (3) / code / | | (4) | | (5) | | (6) // This header contains macros about instruction sets available | | (7) #include <InastempConfig.h> | | (8) | | (9) void user_function(/ parameters /) | | (10) // InaVecBestType<double> is equivalent to InaVecBestTypeDouble | | (11) user_kernel<InaVecBestTypeDouble>(/ … / ); | | (12) |
|