Intel MPI
From HP-SEE Wiki
Line 5: | Line 5: | ||
To use the Intel implementation you must load the appropriate modules just like in the PGI exemple in the OpenMPI section. | To use the Intel implementation you must load the appropriate modules just like in the PGI exemple in the OpenMPI section. | ||
- | + | Usage Examples: | |
+ | |||
+ | $ mpiifort -c ... *.f90 | ||
CXX=${CXX:-g++} | CXX=${CXX:-g++} | ||
FC=${FC:-f77} | FC=${FC:-f77} | ||
Line 13: | Line 15: | ||
RSHCOMMAND=${RSHCOMMAND:-ssh} | RSHCOMMAND=${RSHCOMMAND:-ssh} | ||
- | + | ||
- | + | ||
$ mpiicc -o a.out *.o | $ mpiicc -o a.out *.o | ||
$ mpirun -np 4 a.out: | $ mpirun -np 4 a.out: | ||
$ ifort -I$MPI_INCLUDE -c prog.f90 | $ ifort -I$MPI_INCLUDE -c prog.f90 | ||
$ mpirun -np 4 a.out | $ mpirun -np 4 a.out |
Revision as of 15:36, 20 April 2012
Intel-MPI is a commercial implementation based on mpich2 which is a public domain implementation of the MPI 2 standard provided by the Mathematics and Computer Science Division of the Argonne National Laboratory.
The compiler drivers mpifc, mpiifort, mpiicc, mpiicpc, mpicc and mpicxx and the instruction for starting an MPI application mpiexec will be included in the search path. There are two dierent versions of compiler driver: mpiifort, mpiicc and mpiicpc are the compiler driver for Intel Compiler. mpifc, mpicc and mpicxx are the compiler driver for GCC (GNU Compiler Collection).
To use the Intel implementation you must load the appropriate modules just like in the PGI exemple in the OpenMPI section.
Usage Examples:
$ mpiifort -c ... *.f90 CXX=${CXX:-g++} FC=${FC:-f77} F90=${F90:-f90} MX_HOME=${MX_HOME:-/opt/mx} PREFIX=${PREFIX:-/opt/mpich-mx} RSHCOMMAND=${RSHCOMMAND:-ssh}
$ mpiicc -o a.out *.o
$ mpirun -np 4 a.out:
$ ifort -I$MPI_INCLUDE -c prog.f90
$ mpirun -np 4 a.out