MVAPICH can be integrated with LSF.
Modify the MVAPICH source code: RSH_CMD = 'blaunch' and build the package.
Wrap /usr/bin/rsh on the first execution host or all candidate execution hosts for blaunch as follows:
cat /usr/bin/rsh#!/bin/sh## wrapper /usr/bin/rsh# blaunch is used when applicable#if [ -z "$LSF_BINDIR" \ -o -z "$LSB_JOBID" \ -o -z "$LSB_JOBINDEX" \ -o -z "$LSB_JOBRES_CALLBACK" \ -o -z "$LSB_DJOB_HOSTFILE" ]; then RSH="/usr/bin/rsh.bin"else RSH=$LSF_BINDIR/blaunchfi$RSH $*
cat /usr/bin/rsh
#!/bin/sh
#
# wrapper /usr/bin/rsh
# blaunch is used when applicable
if [ -z "$LSF_BINDIR" \
-o -z "$LSB_JOBID" \
-o -z "$LSB_JOBINDEX" \
-o -z "$LSB_JOBRES_CALLBACK" \
-o -z "$LSB_DJOB_HOSTFILE" ]; then
RSH="/usr/bin/rsh.bin"
else
RSH=$LSF_BINDIR/blaunch
fi
$RSH $*
cat run.mvapich#! /bin/sh#BSUB -n 2#BSUB -o %J.out#BSUB -e %J.err#BSUB -R 'span[ptile=1]'mpirun_rsh -rsh -np $LSB_DJOB_NUMPROC -hostfile $LSB_DJOB_HOSTFILE mympi
cat run.mvapich
#! /bin/sh
#BSUB -n 2
#BSUB -o %J.out
#BSUB -e %J.err
#BSUB -R 'span[ptile=1]'
mpirun_rsh -rsh -np $LSB_DJOB_NUMPROC -hostfile $LSB_DJOB_HOSTFILE mympi
For example, bsub < run.mvapich.