Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

/tune vs /arch in CVF6

rahzan
Novice
721 Views
What is the:
1. Diffrence
2. Interaction
between settings on /arch and /tune ?

e.g. does one supersede the other, or do they compliment each other or...?

thanks,
Tim H
0 Kudos
3 Replies
Steven_L_Intel1
Employee
721 Views
They complement each other.

/arch says "generate instructions that assume the program is being run on a processor of at least this generation". This can cause use of instructions not supported on older processors.

/tune says "when making optimization decisions, choose the sequence that works best on this processor generation." You can use /tune without /arch, in which case the program will run everywhere but may run a bit slower on processor generations older than the one you specified.

The same applies to CVF on IA-32 systems.

Steve
0 Kudos
rahzan
Novice
721 Views
Thank stevo,
That is what I assumed.

So assuming the exe/dll is never distributed, then specifying /arch=host completely supersedes /tune=host.
Correct?

Tim
0 Kudos
Steven_L_Intel1
Employee
721 Views
Supersedes? I don't think I'd put it that way, but in practice it might work out like that.

Steve
0 Kudos
Reply