I’m compiling some code for a sandybridge processor. In the source code, there’s a “dexp” function, which is resulting in an “illegal instruction” error, because it is being compiled as __fd_exp_1_avx2, which is unsupported on sandybridge processors, as they do not have AVX2 support. Even when I add -mcpu=sandybridge -tp=sandybridge -mno-avx2, it still compiles with this AVX2 instruction.
How can I solve this? I’m using HPC SDK 26.3.
Thanks.
Vinicius.