Closed mkatliar closed 1 month ago
My bad: I was not realizing that xsimd::fma3<xsimd::avx2>
should be specified as the architecture. The correct code is
xsimd::batch<float, xsimd::fma3<xsimd::avx2>> a {10.}, b {20.}, c {30.};
xsimd::batch<float, xsimd::fma3<xsimd::avx2>> d = fma(a, b, c);
Test program:
Compile with
Step into the
fma()
function and see that the generic version is called:The
xsimd_fma3_avx.hpp
file where correctfma()
function is defined does get included: