Difference between revisions of "Compiling and running MPI programs"

From IT Service Wiki
Jump to: navigation, search
(New page: We only support openMPI, currently the best MPI implementation. The widely used MPICH2 implementation, is difficult to maintain and Debian/Ubuntu packages are not available. The lamMPI imp...)
 
Line 1: Line 1:
We only support openMPI, currently the best MPI implementation. The widely used MPICH2 implementation, is difficult to maintain and Debian/Ubuntu packages are not available. The lamMPI implementation has stopped in favour to openMPI.
+
We only support openMPI, currently the best MPI implementation. The widely used MPICH2 implementation, is difficult to maintain and Debian/Ubuntu packages are not available. The lamMPI implementation has stopped development in favour to openMPI.  
  
== Compiling ==
+
== Compiling ==
  
To compile MPI programms your are recommended to use the commands mpicc, mpif77, mpif90. By default this wrapper refer to the GNU Compilers gcc and gfortran. To use the wrapper with the Intel Compilers you have to define some environment variables.
+
To compile MPI programms your are recommended to use the commands mpicc, mpif77, mpif90. By default this wrapper refer to the GNU Compilers gcc and gfortran. To use the wrapper with the Intel Compilers you have to define some environment variables.  
 +
 
 +
Bash users can add the following lines to their .bashrc:
 +
<pre>export OMPI_FC='ifort'
 +
export OMPI_F77='ifort'
 +
export OMPI_CC='icc'
 +
 
 +
</pre>
 +
<br>

Revision as of 10:44, 15 January 2009

We only support openMPI, currently the best MPI implementation. The widely used MPICH2 implementation, is difficult to maintain and Debian/Ubuntu packages are not available. The lamMPI implementation has stopped development in favour to openMPI.

Compiling

To compile MPI programms your are recommended to use the commands mpicc, mpif77, mpif90. By default this wrapper refer to the GNU Compilers gcc and gfortran. To use the wrapper with the Intel Compilers you have to define some environment variables.

Bash users can add the following lines to their .bashrc:

export OMPI_FC='ifort'
export OMPI_F77='ifort'
export OMPI_CC='icc'