问题描述
我找不到这个简单问题的答案,/arch:AVX
是否在 Visual Studio 2012 Update 4 上启用 AVX2 及其花哨的 256 位寄存器?
I can't find an answer to this simple question, does the /arch:AVX
enable AVX2 with its fancy 256 bit registers on the Visual Studio 2012 Update 4?
思路:
是的,它启用了 AVX,因为 VS 没有提到 AVX2.但我认为 VS 可以做 AVX2,因为我的内在工作.
Yes, it enables AVX because VS doesn't mention AVX2. But I think VS can do AVX2 because my intrinsic work.
不,不是,因为 SSE 和 SSE2 是分开的
No, it doesn't because SSE and SSE2 are separate
推荐答案
它指的是 AVX 而不是 AVX2.据微软称,这(主要)适用于浮点运算.无论此标志如何,VS2012 都支持 AVX2 内在函数.AVX 可用于 SandyBridge 和 IvyBridge 的 i3、i5 和 i7 变体.AVX2 始于 Haswell.
It refers to AVX not AVX2. According to Microsoft this applies (mostly) to floating point operations.VS2012 supports AVX2 intrinsic functions regardless of this flag.AVX is available on i3, i5 and i7 variants of SandyBridge and IvyBridge.AVX2 started with Haswell.
这篇关于/arch:AVX 是否启用 AVX2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!