LSF Version 7.3 - Using Platform LSF HPC
Note that both the bsub -n 4 and Nastran dmp=4 options are used. The value
for
-n and dmp must be the same.
◆
Parallel job through LSF requesting 4 processors, no more than 1 processor per
host:
% bsub -n 4 -a nastran -R "nastran span[ptile=1]"
nastran example dmp=4
Nastran on Linux using LAM/MPI
You must write a script that will pick up the LSB_HOSTS variable and provide the
chosen hosts to the Nastran program. You can then submit the script using
bsub:
bsub -a nastran lammpi -q hpc_linux -n 2 -o out -e err -R "span[ptile=1]"
lsf_nast
This will submit a 2-way job which will put its standard output in the file named out
and standard error in a file named
err. The ptile=1 option tells LSF to choose at
most 1 CPU per node chosen for the job.
The following sample lsf_nast script only represents a starting point, but deals with
the host specification for LAM/MPI. This script should be modified at your site before
use.
#! /bin/sh
#
# lsf script to use with Nastran and LAM/MPI.
#
#
#Set information for Head node:
DAT=/home/user1/lsf/bc2.dat
#
#Set information for Cluster node:
TMPDIR=/home/user1/temp
#
LOG=${TMPDIR}/log
LSB_HOST_FILE=${TMPDIR}/lsb_hosts
:> ${LOG}
# The local host MUST be in the host file.
echo ${LSB_SUB_HOST} > ${LSB_HOST_FILE}
#
#
# Create the lam hosts file:
for HOST in $LSB_HOSTS
do
echo $HOST >> ${LSB_HOST_FILE}
done
#
cd ${TMPDIR}
rcp ${LSB_SUB_HOST}:${DAT} .
id
# recon -v ${LSB_HOST_FILE}
# cat ${LSB_HOST_FILE}
# pwd
recon -v ${LSB_HOST_FILE} >> ${LOG} 2>&1