Intel® MPI Library Getting Started Guide for Linux* OS
Compiling and Linking
To compile and link an MPI program with the Intel® MPI Library:
Ensure that the underlying compiler and related software appear in your PATH.
If you are using the Intel® Composer XE packages, ensure that the compiler library directories appear in the LD_LIBRARY_PATH environment variable.
For example, for Intel® Composer XE 2011, execute the appropriate setup scripts:
Compile your MPI program using the appropriate mpi compiler script.
For example, to compile C code using the GNU* C compiler, use the following command:
$ mpicc -o myprog <installdir>/test/test.
where <installdir> is the full path to the installed package.
All supported compilers have equivalent commands that use the prefix mpi for the standard compiler command. For example, the Intel MPI Library command for the Intel® Fortran Compiler (ifort) is mpiifort.