- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am using a single SVML function (___mm256_pow_ps()) among other non-SVML intrinsic functions in my code compiled with icpc. Is the following flag:-fimf-use-svml=true:pow the only one I should be using? I am probably missing something. Is there a different header, in addition to immintrin.h, that should be used? My compilation error is:
error: identifier "__m256_pow_ps" is undefined
Thanks in advance,
Steena
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There isn't a documented explicit interface for calling svml functions. icpc should do it automatically with standard source code such as
#include <cmath>
....
float a[].b,c[];
for(int i=0; i<n; ++i)a = pow(c,b); // or <math.h> and powf()
The fimf options may be used to control which svml functions are used, but the default is to use all of them. If the vec-report option tells you it is vectorized, this assures you that an svml call is made. You can check by nm etc.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There isn't a documented explicit interface for calling svml functions. icpc should do it automatically with standard source code such as
#include <cmath>
....
float a[].b,c[];
for(int i=0; i<n; ++i)a = pow(c,b); // or <math.h> and powf()
The fimf options may be used to control which svml functions are used, but the default is to use all of them. If the vec-report option tells you it is vectorized, this assures you that an svml call is made. You can check by nm etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tim,
Thanks for that explanation. My mistake was mistyping the instruction---m256_pow_ps instead of _mm256_pow_ps.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page