kokkos / simd-math

Library for length agnostic SIMD intrinsic support and the corresponding math operations
Other
20 stars 10 forks source link

Add SIMD_FORCE_SCALAR macro #26

Closed tasmith4 closed 3 years ago

tasmith4 commented 3 years ago

@ibaned @alanw0 @ldh4

Selects scalar and turns off compilation of intrinsics. This is functionality that has been requested by multiple STK users as a workaround when intrinsics fail to compile.

alanw0 commented 3 years ago

STK users have also requested a "use scalar" macro for debugging and development purposes. I know in most cases it was sufficient to have that macro at the STK level, meaning that kokkos-simd was still compiling whichever intrinsics were available but we were only "selecting" scalar at the stk level. But this seems even better, to have the kokkos-simd compilation not even look at the intrinsics in that case.