Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
7779 Discussions

Using SVML intrinsics in Clang/MSVC

Meluzín__Vojtěch
475 Views

Hi, I own Intel Parallel Studio 2016, but I find the compiler way too slow, unreliable and actually providing worse code than Clang, but the SVML (and IPP) is great, so I'm trying to use it via Agner Fog's VectorClass (https://www.agner.org/optimize/). Things like sine and cosine seem working, but pow (__svml_powf4) doesn't. It basically produces a pile of nonsense. __svml_powf8 is the same...

Could there be a problem with calling convention? (considering it has 2 arguments, while sin/cos have just one) Any other ideas?

I tried it in MSVC and Clang, in both this ended up with different results, in both cases wrong ones. I also tried the demo of the newest compiler 2019, same thing... The function definition is simple:

extern "C" { extern __m128  __svml_powf4       (__m128,  __m128); };

And linked to svml_dispmt.lib, Windows (but I intend to use it on OSX as well).

0 Kudos
1 Reply
Viet_H_Intel
Moderator
475 Views

Would you be able to provide us a completed test case to investigate?

Thanks,

Viet

Reply