Compiler Command Options

-static_mpi

Use this option to link the Intel® MPI Library statically. This option does not affect the default linkage method for other libraries.

-static

Use this option to link the Intel® MPI Library statically. This option is passed to the compiler.

-nostrip

Use this option to turn off the debug information stripping while linking the Intel® MPI Library statically.

-config=<name>

Use this option to source the configuration file. See Configuration Files for details.

-profile=<profile_name>

Use this option to specify an MPI profiling library. The profiling library is selected using one of the following methods:

-t or -trace

Use the -t or -trace option to link the resulting executable file against the Intel® Trace Collector library. Using this option has the same effect as if you use -profile=vt as an argument to mpiicc or another compiler script.

To use this option, include the installation path of the Intel® Trace Collector in the VT_ROOT environment variable. Set the environment variable I_MPI_TRACE_PROFILE to the <profile_name> to specify another profiling library. For example, set I_MPI_TRACE_PROFILE to vtfs to link against the fail-safe version of the Intel® Trace Collector.

-check_mpi

Use this option to link the resulting executable file against the Intel® Trace Collector correctness checking library. Using this option has the same effect as using -profile=vtmc as an argument to the mpiicc or another compiler script.

To use this option, include the installation path of the Intel® Trace Collector in the VT_ROOT environment variable. Set I_MPI_CHECK_PROFILE to the <profile_name> environment variable to specify another checking library.

-ilp64

Use this option to enable partial ILP64 support. All integer arguments of the Intel MPI Library are treated as 64-bit values in this case.

-no_ilp64

Use this option to disable the ILP64 support explicitly. This option must be used in conjunction with -i8 option of Intel® Fortran Compiler.

Note

If you specify the -i8 option for the separate compilation with Intel® Fortran Compiler, you still have to use the i8 or ilp64 option for linkage. See ILP64 Support for details.

-dynamic_log

Use this option in combination with the -t option to link the Intel® Trace Collector library dynamically. This option does not affect the default linkage method for other libraries.

To run the resulting programs, include $VT_ROOT/slib in the LD_LIBRARY_PATH environment variable.

-g

Use this option to compile a program in debug mode and link the resulting executable file against the debugging version of the Intel® MPI Library. See Environment variables, I_MPI_DEBUG for information on how to use additional debugging features with the -g builds.

Note

The optimized library is linked with the -g option by default.

Note

Use mpivars.{sh|csh} [debug|debug_mt] during runtime to load particular libmpi.so configuration.

-link_mpi=<arg>

Use this option to always link the specified version of the Intel® MPI Library. See the I_MPI_LINK environment variable for detailed argument descriptions. This option overrides all other options that select a specific library.

Note

Use mpivars.{sh|csh}[debug|debug_mt] during runtime to load particular libmpi.so configuration.

-O

Use this option to enable compiler optimization.

-fast

Use this Intel compiler option to maximize speed across the entire program. This option forces static linkage method for the Intel® MPI Library.

See xHost for information on implication of this option on non-Intel processors.

Note

This option is supported on mpiicc, mpiicpc, and mpiifort Intel compiler drivers.

-echo

Use this option to display everything that the command script does.

-show

Use this option to learn how the underlying compiler is invoked, without actually running it. Use the following command to see the required compiler flags and options:

$ mpiicc -show -c test.c

Use the following command to see the required link flags, options, and libraries:

$ mpiicc -show -o a.out test.o

This option is particularly useful for determining the command line for a complex build procedure that directly uses the underlying compilers.

-show_env

Use this option to see the environment settings in effect when the underlying compiler is invoked.

-{cc,cxx,fc,f77,f90}=<compiler>

Use this option to select the underlying compiler.

For example, use the following command to select the Intel® C++ Compiler:

$ mpicc -cc=icc -c test.c

Make sure icc is in your path. Alternatively, you can specify the full path to the compiler.

-gcc-version=<nnn>

Use this option for compiler drivers mpicxx and mpiicpc when linking an application running in a particular GNU* C++ environment. The valid <nnn> values are:

<nnn> value

GNU* C++ version

430

4.3.x

440

4.4.x

450

4.5.x

460

4.6.x

470

4.7.x

By default, the library compatible with the detected version of the GNU* C++ compiler is used. Do not use this option if the GNU* C++ version is lower than 4.0.04.1.0.

-compchk

Use this option to enable compiler setup checks. In this case, each compiler driver performs checks to ensure that the appropriate underlying compiler is set up correctly.

-v

Use this option to print the compiler driver script version and its native compiler version.