Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28506 ディスカッション

Optimization flags documentation

KK1
ビギナー
1,989件の閲覧回数

Hi,

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

Thx. 

0 件の賞賛
1 解決策
mecej4
名誉コントリビューター III
1,989件の閲覧回数

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.

元の投稿で解決策を見る

6 返答(返信)
mecej4
名誉コントリビューター III
1,989件の閲覧回数

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 .

Steven_L_Intel1
従業員
1,989件の閲覧回数

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.

Steven_L_Intel1
従業員
1,989件の閲覧回数

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

KK1
ビギナー
1,989件の閲覧回数

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?

 

 


 

mecej4
名誉コントリビューター III
1,990件の閲覧回数

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.

Steven_L_Intel1
従業員
1,989件の閲覧回数

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

返信