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

speeding options other than O2/O3

wen
Beginner
871 Views

I am trying to compile/link one of my applications in both IA32 and em64t platforms. I ran IA32inifortvars and em64tinifortvars in separate DOS windows. Then I compile/link the code to obtain 32-bit and 64-bit executables in separate windows.

Are there any compiler options I should specify to distinguish the 64-bit executable from the 32-bit executable?

To make an executable for the em64t platform in a Dual Core machine, is there any compiler option to activate Auto Parallelization?

Wen
0 Kudos
2 Replies
Steven_L_Intel1
Employee
870 Views
There are no options to specify 32-bit vs. 64-bit - it's simply a matter of which compiler and linker you use. Running the correct ifortvars.bat will take care of that. You should see the compiler identify itself when you do the compiles.

I would recommend the correct /Qx switch for the processor type you have. If you are using an Intel EM64T processor, use /QxP. If you are using a non-Intel processor, use /QxW. See Intel Compilers Processor-Specific Optimization Options for more details.

For parallel, there is /Qparallel which may help, though if you can add OpenMP directives to your code you may do better. You need to understand what code can be safely run in parallel, or perhaps add explicit threading to your application, to best take advantage of multicore processors.
0 Kudos
wen
Beginner
870 Views
Thank you, Steve. It is helpful.
Wen

0 Kudos
Reply