MPICH2 : Différence entre versions
m (Mvesin a déplacé la page ToolsMpich2 vers MPICH2 sans laisser de redirection) |
|||
Ligne 23 : | Ligne 23 : | ||
− | The version installed is <code>1.5.1p1</code> / 64bit (in the <code>/opt/mvapich2/</code> directory). This version is compiled with GCC; if you want to use MVAMPICH with the PGI compilers, check the [[ | + | The version installed is <code>1.5.1p1</code> / 64bit (in the <code>/opt/mvapich2/</code> directory). This version is compiled with GCC; if you want to use MVAMPICH with the PGI compilers, check the [[PGI|PGI documentation]]. |
The documentation is available in online on the [http://mvapich.cse.ohio-state.edu/support/user_guide_mvapich2-1.5.1.html MVAPICH2 site]. | The documentation is available in online on the [http://mvapich.cse.ohio-state.edu/support/user_guide_mvapich2-1.5.1.html MVAPICH2 site]. | ||
Ligne 63 : | Ligne 63 : | ||
− | See [[ | + | See [[FAQ#How_to_run_a_MPICH_2_application_.3F|How to execute a MPICH2 program ?]] in the FAQ |
Version du 8 décembre 2014 à 14:08
Sommaire
MPICH2/MPI
MPICH2/MPI is a high-performance and widely portable implementation of the Message Passing Interface (MPI) standard (both MPI-1 and MPI-2). The goals of MPICH2 are:
- to provide an MPI implementation that efficiently supports different computation and communication platforms including commodity clusters (desktop systems, shared-memory systems, multicore architectures), high-speed networks (10 Gigabit Ethernet, InfiniBand, Myrinet, Quadrics) and proprietary high-end computing systems (Blue Gene, Cray, SiCortex)
- to enable cutting-edge research in MPI through an easy-to-extend modular framework for other derived implementations.
MPICH2 is developped at the Mathematics and Computer Science Division at Argonne National Laboratory.
The version of MPICH2 installed on the Nef cluster is MVAPICH. It's a version of MPICH2 modified to support Infiniband networks.
Installation and documentation
The version installed is 1.5.1p1
/ 64bit (in the /opt/mvapich2/
directory). This version is compiled with GCC; if you want to use MVAMPICH with the PGI compilers, check the PGI documentation.
The documentation is available in online on the MVAPICH2 site.
Environnement
To use specifically MPICH2/MPI, you should add /opt/mvapich2/bin
in your PATH
:
- shell (bash, zsh):
export PATH=/opt/mvapich2/bin:$PATH
- cshell :
set path=(/opt/mvapich2/bin $path)
Another option is to use mpi commands postfixed by the MPI implementation, for example: mpicc.mpich2, mpirun.mpich2
...
Compiling a MPI program
The best and easiest way to compile a MPI program is to use the wrappers included in the distribution.
- Compiling a C MPI code (several ways to do this)
mpicc -o prog prog.c (if your PATH is correct)
- mpicc.mvapich2 -o prog prog.c
/opt/mvapich2/bin/mpicc -o prog prog.c
- Compiling a C++ MPI code
/opt/mvapich2/bin/mpicxx -o prog prog.c
- Compiling a Fortran 77 MPI code
/opt/mvapich2/bin/mpif77 -o prog prog.f
- Compiling a Fortran 90/95 MPI code
/opt/mvapich2/bin/mpif90 -o prog prog.f
Running a MPICH2 using the batch manager
See How to execute a MPICH2 program ? in the FAQ