如何使用 SVML 指令

how can I use SVML instructions

本文关键字:指令 SVML 何使用      更新时间:2023-10-16

我正在尝试使用 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。