Loading
update AVX and AVX512 to support gcc < 10.1 and clang < 10
Description
Fixes #3021 (closed) with macros around the trouble intrinsics to allow a separate impl that is supported on the older compiler versions.
Reference issue
Fixes #3021 (closed)
Additional information
To be honest, I only have these old compiler versions on the Stan Jenkins CI. But locally I have tested this and it is passing. And with these patches the Stan Math repo is passing on gcc 8.
Would it be possible to make a 5.0.2? It looks like there have been a few nice bug fixes since 5.0.1. Dirk is also looking to update RcppEigen so it would be nice to have all these changes here instead of patching it downstream.