Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: question about option setting and intel compiler under viisual C++6

Author: Uri Blass

Date: 10:50:06 12/31/02

Go up one level in this thread


On December 31, 2002 at 13:14:36, Dann Corbit wrote:

>On December 31, 2002 at 12:01:56, Uri Blass wrote:
>
>>On December 31, 2002 at 11:49:37, Uri Blass wrote:
>>
>>>1)I read in the intel tutorial that I can use optimization like loop
>>>optimization.
>>>Does it mean that it is always better to change my project option from 02 to 03
>>>and if it is the case why not using 03 as the default option?
>>>
>>>2)I read that G7 is the default option but for some reason I see GX in my
>>>computer.
>>>What does it mean?
>>>
>>>The following table was copied and edited by me from the intel tutorial
>>>
>>>  Option Setting           Processor
>>>Windows*    Linux*
>>>
>>>-G6         -tpp6 Pentium Pro, Pentium II and Pentium III processors
>>>
>>>-G7 default -tpp7 default  Pentium 4 processor
>>>
>>>
>>>tpp7 is for linux and it is not relevant for me.
>>>I expected to see G7 in my project option and not GX and I am afraid to change
>>>the X.
>>>
>>>3)From reading the tutorial I get the impression that I cannot give a version
>>>that is the best for all processors and the only way to get a version that is
>>>best for all processors is to have 4 different exe files when everyone of them
>>>run only on specific processors.
>>>
>>>The following is copied from intel's totorial
>>>
>>>"Because they contain multiple versions of code, applications compiled with
>>>these options have increased code size. However, the performance of such code is
>>>better than standard optimized code, although slightly slower than code compiled
>>>with the -Qx[i|M|K|W] options,"
>>>
>>>How much is slightly slower for chess programs and is there a way to avoid the
>>>problem(for some reason I do not see programmers release 4 different version
>>>when they ask the user to choose based on the processor)?
>>>
>>>Uri
>>
>>Another question that I have is which option is best for AMD duron(tm)
>>proccesor.
>>
>>Intel for some reason talk only about pentium and I do not read the
>>word pentium when I look at my system properties so I do not know if to optimize
>>for Ppro,pMMX,PIII or PIV.
>
>These flags work well for the intel compiler:
> /FD /G7 /GA /GF /Gs /O3 /QaxiMKW /Qip /Zm500 /W5 /Qprof_use /Qipo /c
>
>In order to use /Qprof_use you will need to do several runs before hand with
>/Qprof_genx to create profile guided feedback.
>
>Test sets are a decent way to get some feedback.  If your program has an 'auto'
>mode where it plays against itself, then that is even better.

My flags are now
/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS"
/Fp"Release/main.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c

Do you suggest to delete it and use the flags that you give.
I will try it.

Uri



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.