Intel SMID指令集编译错误: inlining failed in call to always_inline 'xxx': target specific option mismatch xxx
清泛原创
最近在使用CPU指令集优化代码的时候,编译出错,报错如下:
函数在Intel指令集官网查找:https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html
/usr/lib64/gcc/x86_64-suse-linux/7/include/avx2intrin.h:252:1: error: inlining failed in call to always_inline ‘__m256i _mm256_cmpeq_epi64(__m256i, __m256i)’: target specific option mismatch
添加编译选项解决:-mxxx (对应函数的CPUID Flags,如下图 -mavx2)函数在Intel指令集官网查找:https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html
上一篇:【解决】This is allowed only when policy CMP0079 is set to NEW.
下一篇:CPU指令集avx程序无法运行,运行崩溃