如何使用 SVML 指令
how can I use SVML instructions
我正在尝试使用 SIMD 计算exponential
函数。 我发现了这个函数: https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_exp_ps&expand=2136
我已经在我的代码中包含"immintrin.h"
,而且我的 cpu 也有一个 SSE
标志。但gcc
抱怨error: ‘_mm_exp_pd’ was not declared in this scope
如何检查是否启用了 SVML 指令?
SVML 是英特尔专有的库,可与英特尔编译器 (ICC( 配合使用。如果您不使用ICC,则需要找到等效的库,例如sse_mathfun或avx_mathfun。
更新:Visual C++ 2019 支持适用于 x86/x64 架构的英特尔 SVML。
相关文章:
- 使用C++库在Android项目中修改gradle中的cmake参数,用于插入指令的测试
- 无法编译 rtmidi 测试 cmidiin.cpp 文件, 非法指令
- C++:对不存在的命名空间使用命名空间指令
- 函数名是c中该函数的第一条指令的地址吗
- 错误:无效的预处理指令 #i 的意思是 #if?
- 组装指令中乘法的下部和上部是什么
- OpenMP 与有序和关键指令并行
- C++中的移动分配出现问题.非法指令: 4.
- 嵌套命名空间的"using"指令,但需要命名内部命名空间
- C++CMake编译指令与
- 使用宏扩展的泛型:为什么指令缓存使用不当?
- 如何在 c++ 中确定一条指令(以字节为单位)在哪里结束,另一条指令从哪里开始?
- AVX 指令中寄存器和指针之间的客观差异
- while 循环 c++ 中的非法指令
- 如何在编译时定义C++预处理器指令的值?
- 存储指令是否会阻止缓存未命中的后续指令?
- 保证编译器指令在C++中重新排序
- VS2008中的AVX-512指令库
- 令人困惑的定义指令在C ++项目中
- 如何使用 SVML 指令