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
초급자
3,403 조회수

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
3,403 조회수

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 포인트
6 응답
mecej4
명예로운 기여자 III
3,403 조회수

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 포인트
Steven_L_Intel1
3,403 조회수

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 포인트
Steven_L_Intel1
3,403 조회수

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

0 포인트
KK1
초급자
3,403 조회수

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 포인트
mecej4
명예로운 기여자 III
3,404 조회수

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 포인트
Steven_L_Intel1
3,403 조회수

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

0 포인트
응답