- Infos im HLRS Wiki sind nicht rechtsverbindlich und ohne Gewähr -
- Information contained in the HLRS Wiki is not legally binding and HLRS is not responsible for any damages that might result from its use -
Intel MPI: Difference between revisions
(Examples for Intel MPI) |
|||
Line 14: | Line 14: | ||
This example shows the basic steps when using Intel MPI. | This example shows the basic steps when using Intel MPI. | ||
Load the necessary | Load the necessary module | ||
{{Command | {{Command | ||
| command = module load mpi/impi | | command = module load mpi/impi | ||
Line 21: | Line 21: | ||
Compile your application using the mpi wrapper compilers <tt>mpicc</tt>, <tt>mpicxx</tt> and <tt>mpif90</tt>. | Compile your application using the mpi wrapper compilers <tt>mpicc</tt>, <tt>mpicxx</tt> and <tt>mpif90</tt>. | ||
{{Note|text = | {{Note|text = | ||
You will not find a Intel Compiler version for Intel MPI on most systems. | You will not find a Intel Compiler version for Intel MPI on most systems. If you want to use Intel MPI in combination with the Intel Compiler load the GNU version of Intel MPI and the <tt>compiler/intel</tt> module. For compilation call the Intel specific wrapper compilers <tt>mpiicc</tt>, <tt>mpiicpc</tt> and <tt>mpiifort</tt>. | ||
}} | }} | ||
Revision as of 19:46, 26 February 2010
Intel MPI Library 3.2 focuses on making applications perform better on Intel architecture-based clusters—implementing the high performance MPI-2 specification on multiple fabrics. |
|
Examples
simple example
This example shows the basic steps when using Intel MPI.
Load the necessary module
Compile your application using the mpi wrapper compilers mpicc, mpicxx and mpif90.
Run your application
thread pinning
This example shows how to run an application on 16 nodes, using 32 processes spawning 128 threads with sets of 4 threads being pinned to a single CPU socket. This will give you optimum NUMA placement of processes and memory e.g. on the NEC Nehalem Cluster.
Best use Intel MPI in combination with Intel compiler.
Compile your application as shown in the simple example above.
sort -u $PBS_NODEFILE > m # generate a hostlist
mpdboot -n 16 -f m -r ssh # build a process ring to be used by MPI later
Run the application using the thread_pin_wrapper.sh script shown below.
#!/bin/bash export KMP_AFFINITY=verbose,scatter # Intel specific environment variable export OMP_NUM_THREADS=4 RANK=${OMPI_COMM_WORLD_RANK:=$PMI_RANK} if [ $(expr $RANK % 2) = 0 ] then export GOMP_CPU_AFFINITY=0-3 numactl --preferred=0 --cpunodebind=0 $@ else export GOMP_CPU_AFFINITY=4-7 numactl --preferred=1 --cpunodebind=1 $@ fi