I am trying to compile our project with icc with -mavx option, and it cannot recognise gcc built-ins from avxintrin.h (such as __builtin_ia32_loadupd256 and __m256d). We don't include the header directly, it comes from tbb headers through immintrin.h header. How can I fix this issue? Or is gcc 4.7 just too old for icc 17, i.e. not supported?
Update: it looks like Intel compiler looks in gcc headers for immintrin.h, even when I supply only Intel include directory on command line. Is gcc include dir picked from some env variables?