Intel® MPI Library User's Guide for Linux* OS
To build an MPI application for the host node and the Intel® Xeon Phi™ coprocessor, follow these steps:
Establish the environment settings for the compiler and for the Intel® MPI Library:
$ . <install-dir>/compilers_and_libraries/linux/bin/compilervars.sh intel64
$ . <install-dir>/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh
Build your application for Intel® Xeon Phi™ coprocessor:
$ mpiicc -mmic myprog.c -o myprog.mic
Build your application for Intel® 64 architecture:
$ mpiicc myprog.c -o myprog