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

Optimization flags documentation

KK1
Beginner
1,911 Views

Hi,

Where can I get the documentation of the optimization flags and explanation for ifort and mpiifort 15.0.1.

Thx. 

0 Kudos
1 Solution
mecej4
Honored Contributor III
1,911 Views

The current Intel Fortran manual contains "-nofor-main" in some places and "-nofor_main" in other places. The spelling actually used may have been different for different versions of the Linux and OSX IFort compilers.

The -D flag is universally used by language compilers on Unix/Linux/OSX, and sometimes Windows, to define a string for the preprocessor. The string that follows the flag is user selected, and may be of the two forms -Dstr or -Dstr1=str2. The first form is used with #ifdef and #ifndef preprocessor directives. With the second form, str1 is replaced by str2 throughout the source file being processed.

View solution in original post

0 Kudos
6 Replies
mecej4
Honored Contributor III
1,911 Views

See https://software.intel.com/en-us/node/524877 for the section on options. The complete compiler documentation is at https://software.intel.com/en-us/node/524874 .

0 Kudos
Steven_L_Intel1
Employee
1,911 Views

https://software.intel.com/en-us/compiler_15.0_ug_f is the link I would suggest keeping around for the current documentation. The /node/ links tend to go stale after a new release.

0 Kudos
Steven_L_Intel1
Employee
1,911 Views

By the way, "mpifort" is not a command provided by Intel Fortran.

0 Kudos
KK1
Beginner
1,911 Views

I go through the intel "mpi" documentation (https://software.intel.com/en-us/node/528771), as I am using "mpiifort", version 15.0.1.  I did not find any information about the following compilation flags:

-DALLOW_NON_INIT

-nofor_main

However, I still can compile my program with these.  Where can I get the complete documentation of flags?

 

 


 

0 Kudos
mecej4
Honored Contributor III
1,912 Views

The current Intel Fortran manual contains "-nofor-main" in some places and "-nofor_main" in other places. The spelling actually used may have been different for different versions of the Linux and OSX IFort compilers.

The -D flag is universally used by language compilers on Unix/Linux/OSX, and sometimes Windows, to define a string for the preprocessor. The string that follows the flag is user selected, and may be of the two forms -Dstr or -Dstr1=str2. The first form is used with #ifdef and #ifndef preprocessor directives. With the second form, str1 is replaced by str2 throughout the source file being processed.

0 Kudos
Steven_L_Intel1
Employee
1,911 Views

The compiler tends to accept both - and _ in older options.

0 Kudos
Reply