Intel® MPI Library

Compiling an MPI Program

This topic describes the basic steps required to compile and link an MPI program, using the Intel® MPI Library SDK.

To simplify linking with MPI library files, Intel MPI Library provides a set of compiler wrapper scripts with the mpi prefix for all supported compilers. To compile and link an MPI program, do the following:

Tuning with mpitune Utility

Besides the standard capabilities for compiling and running MPI applications, Intel® MPI Library provides an automatic utility for optimizing Intel MPI Library parameters for a particular cluster or application. This utility is called mpitune and is available in the <installdir>\intel64\bin directory.

Compiler Commands

(SDK only)

The following table lists the available Intel® MPI Library compiler commands with their underlying compilers and programming languages.

Table 2.1-1 Intel® MPI Library Compiler Wrappers

Compiler Command

Default Compiler

Supported Language(s)

Generic Compilers

Native and IPM Statistics

The statistics in each supported format can be collected separately. To collect statistics in all formats with the maximal level of details, use the I_MPI_STATS environment variable as follows:



The I_MPI_STATS_SCOPE environment variable is not applicable when both types of statistics are collected.

mpitune Utility


Use the mpitune utility to find optimal settings for the Intel® MPI Library relevant to your cluster configuration or your application.


mpitune [options]


-a \"<app_cmd_line>\"

--application \"<app_cmd_line>\"

IPM Statistics

To enable the integrated performance monitoring (IPM) statistics collection, set I_MPI_STATS to ipm or ipm:terse.

The I_MPI_STATS_BUCKETS environment variable is not applicable for the IPM format. The I_MPI_STATS_ACCURACY environment variable is available to control extra functionality.


Control the statistics data output format.

Suscribirse a Intel® MPI Library