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

compiling issue

sarvin_moghaddam
Beginner
559 Views
Dear All,

I am not sure if this is the correct place to post my question. Anyhow, I have a problem which I am addressing below and appreciate of your thoughts and comments.

I compile my code using ifort (version11), and I only can get it executed on our Opteron machines and NOT on our Athlon machines which are 64-bit machines but with 32-bit OS. I was wondering if there is any "FLAG" that I need to use while I compile my code.

Thanks again in advance,

Regards,
Sarvin

0 Kudos
3 Replies
Steven_L_Intel1
Employee
559 Views
If you are running a 32-bit OS, then effectively you have a 32-bit processor. You must therefore use the "IA-32" compiler and not the "Intel 64" compiler. You specify this by adding the argument "ia32" when invoking ifortvars.sh/.csh. Does this help?
0 Kudos
Alexander_C_Intel
559 Views
Hi Sarvin,

Could you please provide a bit more details?
1) Which compiler switches were used to produce the executable?
2) Is there any failure diagnostic when you are trying to execute it on Athlon?

Alexander
0 Kudos
TimP
Honored Contributor III
559 Views
Athlon-64 should have full SSE2 support in 32-bit mode. Original Turion may have claimed to be a 64-bit processor, but didn't have full SSE2 support, so would require the -mia32 compile switch. Turion X2 shouldn't have such a problem. Original Athlon, of course, had no SSE2, and again would require -mia32.
0 Kudos
Reply