Jump to content
Tuts 4 You
Sign in to follow this  
CodeExplorer

MaxSpeedHighLevel in Visual Studio ???

Recommended Posts

CodeExplorer

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?
 

Share this post


Link to post
CodeExplorer

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!
 

Share this post


Link to post
CodeExplorer

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!
 

Share this post


Link to post
CodeExplorer

With Intel C++ Compiler the /O2 optimization is faster then /O3 optimization ! :blink::wacko:
What?
 

Share this post


Link to post
Teddy Rogers

There are no guarantees O3 will be faster in all scenarios.

/Os perhaps?

Ted.

  • Thanks 1

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...