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

Intel fortran flags

cria_ro
Beginner
1,303 Views

Hello,

I am trying to run a fortran porgram on a Fujitsu Celsius W 340 with Intel Pentium 4 3.6 GHz proccessor.

I compile with

ifort -r8 -xN -axP -fast 31.f

When I try to run the program I get the error:

Fatal Error: This program was not built to run on the processor in your system.
The allowed processors are: Intel Core Duo processors and compatible Intel processors with supplemental Streaming SIMD Extensions 3 (SSSE3) instruction support.

 

What are the proper optimization flags for this proccessor?

Best,

Cristian

 

0 Kudos
4 Replies
TimP
Honored Contributor III
1,303 Views
Assuming your CPU supports SSE3, as those made in the last 3 years do, -xP would be OK. It looks like you have a recent compiler in which -fast sets -xT, but you don't have a Core CPU model. If you are certain that you want more aggressive options than -xP, you could add -ipo. I don't normally use anything more aggressive than -xP -assume protect_parens.
0 Kudos
cria_ro
Beginner
1,303 Views

Thank youfor the answer! I gues I am just confused about this proccessor related flags. Do you know a link from where I could read about all these flags related to the type of proccessor?

Cristian

0 Kudos
Steven_L_Intel1
Employee
1,303 Views
I recommend against using -fast, as its meaning changes from release to release.
0 Kudos
Reply