Intel® MPI Library User's Guide for Linux* OS
This topic describes the basic steps required to compile and link an MPI program, when using only the Intel® MPI Library Development Kit. To compile and link an MPI program with the Intel® MPI Library:
$ . <installdir>/bin64/mpivars.sh
$ mpiicc <installdir>/test/test.c -o testc
You’ll get an executable file testc in the current directory which can be started immediately. For description of how to launch your application, see Running Applications in this document.
By default, the executable file testc is linked with the multi-threaded optimized Intel MPI Library. If you need to use other configuration, see Intel® MPI Library Configurations.
Other supported compilers have an equivalent command that uses the prefix mpi on the standard compiler command. For the full list of supported compilers, see the Compiler Commands topic in Intel® MPI Library Reference Manual for Linux* OS.