LSF Version 7.3 - Using Platform LSF HPC
Using AFS with MPICH-GM
Complete the following steps only if you are planning to use AFS with
MPICH-GM.
The MPICH-GM package contains an esub.afs file which combines the esub for
MPICH-GM and the
esub for AFS so that MPICH-GM and AFS can work together.
Steps
Install and configure LSF for AFS.
Edit mpirun.ch_gm. The location of this script is defined with the
MPIRUN_CMD parameter in the script
LSF_BINDIR/gmmpirun_wrapper.
Replace the following line:
exec($rsh,'-n',$_,$cmd_ln);
with:
exec($lsrun,'-m',$_,'/bin/sh','-c',"$cmd_ln < /dev/null");
Add the following line to mpirun.ch_gm before the line $rsh="rsh";
replacing $LSF_BINDIR by the actual path:
$lsrun=”$LSF_BINDIR/lsrun”;
$rsh="rsh";
For example:
$lsrun="/usr/local/lsf/7.0/linux2.4-glibc2.1-
x86/bin/lsrun";
Comment out the following line:
#$rsh="rsh";
Replace the following line:
exec($rsh,$_,$cmdline);
with:
exec($lsrun,'-m',$_,'/bin/sh','-c',$cmdline);
Replace the following line:
exec($rsh,'-n',$_,$cmdline);
with:
exec($lsrun,'-m',$_,'/bin/sh','-c',"$cmdline</dev/null");
Replace the following line:
die "$rsh $_ $argv{$lnode}->[0]:$!\n"
with:
die "$lsrun -m $_ sh -c $argv{$lnode}->[0]:$!\n"
Save the mpirun.ch_gm file.