software:mpich

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
software:mpich [2021/09/14 15:07]
jrutte02 removed
— (current)
Line 1: Line 1:
-====== Usage ====== 
- 
-Example usage: 
- 
-<code bash> 
-$ module load mpi/mpich/3.1.4 
-$ mpicc program.c -o program 
-$ bsub ... mpiexec.hydra ./program 
-</code> 
- 
-Note on ''mpiexec.hydra'': ''mpirun'' and ''mpiexec'' are present, too. ''mpirun'' and ''mpiexec'' are soft links pointing to ''mpiexec.hydra''. 
- 
-<WRAP alert> 
-//**Attention**// 
- 
-We do offer modules for [[https://www.mpich.org/|MPICH]]. However, these do not offer Infiniband support and Mogon I [[nodes|does use Infiniband for high-speed communication]]. 
-</WRAP> 
- 
-Therefore, in this order: 
-  - If possible use [[software:mvapich2|MVAPICH2]]. It has a very similar interface and implementation. 
-  - If possible confine the program to one node. 
-  - If it is still required to use MPICH, to span across nodes, supply a so-called ''hostfile'' to indicate at least using TCP over ib (assuming a wrapper skript written in [[https://www.gnu.org/software/bash/|bash]], which is submitted with ''bsub''-command): 
- 
-<code bash> 
-touch hostfile 
-for host in $LSB_HOSTS; do echo ${host}-ib >> hostfile; done 
-... mpiexec.hydra -f hostfile ... 
-</code> 
-