Significantly increases the chance that a compiler will be able to autovectorize the inner loops of SCAMP
Adds compiler output for popular compilers (MSVC/clang/gcc) indicating which loops from the kernel were vectorized
Only handles NaNs in the CPU kernel when needed, as processing the nans can cause signifigant slowdown on less sophisticated compilers (MSVC)
Overall CPU performance in situations where these benefits were not already observed is 2-4x. Further optimization may be possible (e.g. explicitly enabling AVX code generation on MSVC on platforms that support it).
Platform specific optimizations are also possible on MSVC, as it does not support -march=native which we use everywhere else. Enabling AVX on MSVC
This PR does a couple of things:
Overall CPU performance in situations where these benefits were not already observed is 2-4x. Further optimization may be possible (e.g. explicitly enabling AVX code generation on MSVC on platforms that support it).
Platform specific optimizations are also possible on MSVC, as it does not support -march=native which we use everywhere else. Enabling AVX on MSVC