Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
1094 Discussions

Enabling and Disabling AVX in Visual Studio 2010

arrahul
Beginner
872 Views
Hai, Please provide answers for these following issues.

1)Please help me in finding some option to enable and disable AVX in visual studio 2010. I hope the command line option /arch:AVX is the one used for enabling AVX. Is there any option to disable it? Does it mean that If we dont use this command line option , it is automatically disabled?

2)Is it mandatory that we need to have Windows 7 SP1 to work with AVX. Will this not work with windows 7?

0 Kudos
5 Replies
TimP
Honored Contributor III
872 Views
In our experience, AVX code will not run on Win7 without the SP1 upgrade.
You can run applications built without AVX either before or after SP1. As far as your non-AVX application is concerned, the ability to handle AVX won't have a direct impact.
0 Kudos
arrahul
Beginner
872 Views
Hai

Thankyou very much for the quick reply. Could you please give me more inputs on the compiler options to set AVX in visual stuio 2010 env? I mean the answer to the first question. Thanks
0 Kudos
TimP
Honored Contributor III
872 Views
I don't believe there's any way to disable or require AVX, other than by the /arch compilation option (and equivalent options in 3rd party compilers, including Intel's).
0 Kudos
arrahul
Beginner
872 Views
Thanks.
Is there any option to work with SSE4.2 on a sandy bridge platform using visual studio? I have win-7 SP1.
SSE ,SSE2.0 is enabled only for x86 platforms. For x64 platforms these are not enabled in visual studio. Is there any way to incorporate SSE4.2 for x64 in visual studio environment?

Thanks
0 Kudos
TimP
Honored Contributor III
872 Views
Intel compilers offer the option to generate code for SSE4.2 platform under Win7. Other compilers may not. Sandy Bridge runs all these versions of SSE perfectly well.
As far as I know, an SSE2 compatible platform is required to run Win7, as well as to run current Intel compilers, and there is no current Visual Studio compatible compiler to generate SSE without SSE2 support.
For X64, all Windows compilers generate SSE2 code as the default; Windows X64 always required an SSE2 capable platform (minimum requirement SSE3 for Intel hardware supporting X64). Of course, these include SSE.
It's difficult to guess what you are driving at.
0 Kudos
Reply