LSF Version 7.3 - Using Platform LSF HPC
#@ notification = never
#@ queue
# ---------------------------------------------
# Copy required workfiles to $WORKDIR, which is set
# to /scr/$user under the large GPFS work filesystem,
# named /scr.
cp ~/TESTS/mpihello $WORKDIR/mpihello
# Change directory to $WORKDIR
cd $WORKDIR
# Execute program mypoejob
poe mypoejob
poe $WORKDIR/mpihello
# Copy output data from $WORKDIR to appropriate archive FS,
# since we are currently running within a volatile
# "scratch" filesystem.
# Clean unneeded files from $WORKDIR after job ends.
rm -f $WORKDIR/mpihello
echo "Job completed at: `date`"
Make sure the queue hpc_ibm is available in lsb.queues.
Set the EXCLUSIVE parameter of the queue:
EXCLUSIVE=Y
Create the job script for the LSF job. For example:
#!/bin/csh
# mypoe_jobscript
# Start script ---------
#BSUB -a poe
#BSUB -n 16
#BSUB -x
#BSUB -o batch_test.%J_%I.out
#BSUB -e batch_test.%J_%I.err
#BSUB -W 60
#BSUB -J batch_test
#BSUB -q hpc_ibm
setenv ENVIRONMENT BATCH
setenv MP_EUILIB=us
# Copy required workfiles to $WORKDIR, which is set
# to /scr/$user under the large GPFS work filesystem,
# named /scr.
cp ~/TESTS/mpihello $WORKDIR/mpihello
# Change directory to $WORKDIR
cd $WORKDIR
# Execute program mypoejob
mpirun.lsf mypoejob -euilib us
mpirun.lsf $WORKDIR/mpihello -euilib us