|
|
# How to submit a MPICH2 job with qsub
|
|
|
----
|
|
|
'**MPICH2 on Shark**'
|
|
|
MPICH is a freely available, portable implementation of MPI, a standard for message-passing for distributed-memory applications used in parallel computing.
|
|
|
The MPICH2 libraries are installed on all execution nodes. In order to use the MPICH2 implementation you need a parallel environment.
|
|
|
To list all parallel environments execute this command:
|
|
|
|
|
|
qconf -spl
|
|
|
BWA
|
|
|
make
|
|
|
mpich2
|
|
|
smp
|
|
|
|
|
|
|
|
|
For MPICH2 we need to use the parallel environment **mpich2**.
|
|
|
On shark you will find two mpi programs inc. source in /usr/local/mpich2-bin/
|
|
|
To submit a mpich2 job with qsub and 10 slots you need a shell script:
|
|
|
The option **-rmk sge** is important to use, and the environment variable QRSH_WRAPPER.
|
|
|
|
|
|
#!sh
|
|
|
#!/bin/bash
|
|
|
#$ -V
|
|
|
#$ -N mpich2_tst
|
|
|
#$ -cwd
|
|
|
#$ -pe mpich2 10
|
|
|
#$ -v QRSH_WRAPPER=/usr/local/OpenGridScheduler/gridengine/bin/linux-x64/qrshwrapper
|
|
|
|
|
|
|
|
|
mpiexec -rmk sge -np 10 /usr/local/mpich2-bin/mpi_hello_world
|
|
|
|
|
|
}}}
|
|
|
Change #$ -pe mpich2 **10** and the -np 10 to the number of slots you want to use.
|
|
|
Note the maximum slots that can be assinged is : 120 |
|
|
\ No newline at end of file |