CodeExplorer Posted September 7, 2019 Posted September 7, 2019 I use Visual Studio 2010 Enterprise! In a Visual Studio project barswf_cpu.vcxproj I've saw this <ClCompile> <Optimization>MaxSpeedHighLevel</Optimization> Apparently this value is not valid, https://docs.microsoft.com/en-us/cpp/build/reference/o-options-optimize-code?view=vs-2019 I've replaced that (MaxSpeedHighLevel) with: <ClCompile> <Optimization>MaxSpeed</Optimization> Now compiles, the problem is that speed is of 45 MHashes/second instead of 60 MHashes/seconds (in already compiled exe by someone else) - so the speed is 25% slower. Anyone know what is with MaxSpeedHighLevel ??? And more important how to improve speed?
CodeExplorer Posted September 7, 2019 Author Posted September 7, 2019 https://github.com/Microsoft/vcpkg/issues/3771 From that: " As I said in the original post, this is a value used by icc, the intel compiler." So I have to install intel compiler which will allow /O3 optimizations!
CodeExplorer Posted September 8, 2019 Author Posted September 8, 2019 Intel C++ Compiler v11.xx supports Visual Studio 2008 and not latter VS like 2010 Intel Parallel Studio XE 2013 - Intel(R) C++ Composer XE 2013 SP1 includes Intel C++ Compiler and supports Visual Studio 2010. You should include the lib folder (in Library Directories): C:\Program Files\Intel\Composer XE 2013 SP1\compiler\lib\ia32 AND NOT C:\Program Files\Intel\Compiler\11.1\067\lib\ia32 Anyway after compiling with /O3 optimizations the speed is slower then with Visual C++ /O2 optimizations!
CodeExplorer Posted September 8, 2019 Author Posted September 8, 2019 With Intel C++ Compiler the /O2 optimization is faster then /O3 optimization ! What?
Teddy Rogers Posted September 8, 2019 Posted September 8, 2019 There are no guarantees O3 will be faster in all scenarios. /Os perhaps? Ted. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now