Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I use SVML instructions [duplicate]

Tags:

c++

x86

simd

sse

I am trying to calculate the exponential function using SIMD. and I found this function : https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_exp_ps&expand=2136

I have already included "immintrin.h" in my code, and also my cpu has a SSE flag. But gcc is complaining that error: ‘_mm_exp_pd’ was not declared in this scope

How could I check whether SVML instructions is enabled ?

like image 920
bbvan Avatar asked Feb 09 '17 02:02

bbvan


1 Answers

SVML is a proprietary Intel library that works with the Intel compiler (ICC). If you're not using ICC then you'll need to find an equivalent library, e.g. sse_mathfun or avx_mathfun.

UPDATE: Visual C++ 2019 supports Intel SVML for x86/x64 architectures.

like image 163
Paul R Avatar answered Nov 02 '22 14:11

Paul R