I am using OneAPI with Visual Studio 2019.
I have included immintrin.h.
When building with Intel Oneapp I got the error below. I have checked project settings in case AVX2 isn't enabled, but there is no option to have something similar to arch: AVX2 like used in other compilers.
error : unknown type name '__m256'