Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doku:mpi [2017/03/23 14:44] – [VSC-2] irdoku:mpi [2021/09/14 13:27] (current) – removed goldenberg
Line 1: Line 1:
-====== MPI environment ====== 
-===== VSC-2 ===== 
-In your job script use the following parallel environment (-pe option): <code>#$ -pe mpich <slots> 
-</code> 
- 
-Please refrain from setting any MPI-related environment variables in your //.bashrc// as these are set via a profile-script (/etc/profile.d/mpi-selector.sh). 
- 
-Different MPI implementations can be chosen via the command "mpi-selector".\\  
-** We recommend using the latest Intel MPI (currently impi_intel-5.1.1.109) on both VSC-1 and VSC-2.**\\ 
-On both clusters other MPI Versions (OpenMPI and MVAPICH2) are also available. 
- 
- 
- 
-==== Process Pinning with MPI ==== 
-Most MPI implementations allow a pinning of the MPI processes to specific CPU cores if needed. 
- 
- 
-Numbering of the cores on a VSC-1 node with 8 cores: 
-<code> 
-CPU0 CORE0 
-CPU0 CORE1 
-CPU0 CORE2 
-CPU0 CORE3 
- 
-CPU1 CORE4 
-CPU1 CORE5 
-CPU1 CORE6 
-CPU1 CORE7 
-</code> 
- 
-Numbering of the cores on a VSC-2 node with 16 cores: 
-<code> 
-CPU0 CORE0 
-CPU0 CORE1 
-CPU0 CORE2 
-CPU0 CORE3 
-CPU0 CORE4 
-CPU0 CORE5 
-CPU0 CORE6 
-CPU0 CORE7 
- 
-CPU1 CORE8 
-CPU1 CORE9 
-CPU1 CORE10 
-CPU1 CORE11 
-CPU1 CORE12 
-CPU1 CORE13 
-CPU1 CORE14 
-CPU1 CORE15 
- 
-</code> 
- 
- 
-=== Pinning to cores 0,1,2,4,6 === 
- 
-Mvapich: 
-<code> 
-mpirun  -machinefile $TMPDIR/machines -np 1 -env MV2_CPU_MAPPING 0-2,4,6 ./a.out  
-</code> 
- 
- 
-Intel MPI: 
-<code> 
-export I_MPI_PIN_PROCESSOR_LIST=0-2,4,6 
-mpirun -machinefile $TMPDIR/machines -np 1 ./a.out 
-</code> 
  
  • doku/mpi.1490280288.txt.gz
  • Last modified: 2017/03/23 14:44
  • by ir