Building an MPI Application

To build an MPI application for the host node and the Intel® Xeon Phi™ coprocessor, follow these steps:

  1. Establish the environment settings for the compiler and for the Intel® MPI Library:

    $ . <install-dir>/composerxe/bin/compilervars.sh intel64
    $ . <install-dir>/impi/intel64/bin/mpivars.sh		
  2. Build your application for Intel® Xeon Phi™ coprocessor:

    $ mpiicc -mmic myprog.c -o myprog.mic	
    	
  3. Build your application for Intel® 64 architecture:

    $ mpiicc myprog.c -o myprog