LSF Version 7.3 - Using Platform LSF HPC
if [ $option = "$1" ]; then
MPIRunOpt="1"
case "$1" in
-v)
shift
;;
*)
LAMMPI_OPTS="$LAMMPI_OPTS $1"
shift
;;
esac
break
fi
done
fi
if [ $MPIRunOpt = "1" ]; then
:
else
JOB_CMDLN="$*"
break
fi
done
# -----------------------------------------------------------------------------
# Set up the CMD_LINE variable representing the integrated section of the
# command line:
# - LSF_TS, script variable representing the TaskStarter binary.
# TaskStarter must start each and every job task process.
# - LSF_TS_OPTIONS, LSF environment variable containing all necessary
# information for TaskStarter to callback to LSF's Parallel Application
# Manager.
# - JOB_CMDLN, script variable containing the job and job options
#------------------------------------------------------------------------------
if [ -z "$LSF_TS_OPTIONS" ]
then
echo CMD_LINE="$JOB_CMDLN" >> $LOGFILE
CMD_LINE="$JOB_CMDLN "
else
echo CMD_LINE="$LSF_TS $LSF_TS_OPTIONS $JOB_CMDLN" >> $LOGFILE
CMD_LINE="$LSF_TS $LSF_TS_OPTIONS $JOB_CMDLN "
fi
#
# -----------------------------------------------------
# Pre-execution steps required by LAMMPI:
# - define the variable LAM_MPI_SOCKET_SUFFIX using the LSF
# job ID and export it
# - run lamboot command and log the action
# - append the hosts file to the script log file
# - run tping command and log the action and output