我如何使用SVML指令 [英] how can I use SVML instructions

查看:184
本文介绍了我如何使用SVML指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用SIMD计算指数函数。并且我找到了此功能: https://software.intel。 com / sites / landingpage / IntrinsicsGuide /#text = _mm_exp_ps& expand = 2136

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

我已经包含了 immintrin.h 在我的代码中,而且我的cpu也有 SSE 标志。但是 gcc 抱怨在此范围内未声明 error:'_mm_exp_pd'

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

如何检查是否启用了SVML指令?

How could I check whether SVML instructions is enabled ?

推荐答案

SVML是专有的英特尔库,可以正常工作与英特尔编译器(ICC)。如果您不使用ICC,则需要找到一个等效的库,例如 sse_mathfun avx_mathfun

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.

更新:Visual C ++ 2019支持x86 / x64体系结构的Intel SVML。

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

这篇关于我如何使用SVML指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆