FDS parallel on LAM MPI and PBSpro

82 views
Skip to first unread message

Ricky

unread,
Aug 6, 2009, 4:09:41 AM8/6/09
to FDS and Smokeview Discussions
Hello everyone,

I have been trying to run parallel version of FDS on a linux cluster
in which I have installed LAM MPI and PBSpro (it is a LAM-MPI
installed shared memory server). But I am not successful till now. Can
anyone help me on how to run FDS on LAM MPI and PBSpro? Does anyone
have experience with this platform? Following is the file that I am
using but it does not work:

#/bin/bash
> >#PBS -lselect=3:ncpus=2:mpiprocs=2
> >#PBS -q workq
> >#PBS -N fds_run_p64
> >#PBS -m bea
> >#PBS -M
> >#PBS -V
> >cd $PBS_O_WORKDIR
> >lamboot
> >mpirun -c $PBS_NODEFILE fds_5.3.1_mpi_intel_linux_64 case_parallel.fds

It seems that I have problem with the last line. Please help me. It
will be highly appreciated. Thank you.

Ricky

Kevin

unread,
Aug 6, 2009, 8:09:28 AM8/6/09
to FDS and Smokeview Discussions
Maybe you need to:

lamboot $PBS_NODEFILE

before you cd to the working directory. I haven't used PBS in several
years and I cannot explain half of these cryptic commands, but my last
script looked like this:

#!/bin/bash
# Example script for submitting a job to PBS on titan.
#
#PBS -N floor7
#PBS -q default
#PBS -l nodes=1

LAMHOME=/usr/local/lam/lam-7.0.4lf
export PATH=$LAMHOME/bin:$PATH

cd $PBS_O_WORKDIR

jobnum=`echo $PBS_JOBID | awk 'BEGIN {FS = "."} { printf("%05d",
$1)}'`

echo jobnum $jobnum

echo Running on nodes:
cat $PBS_NODEFILE
echo
echo Booting LAM
lamboot $PBS_NODEFILE

#determine the number of nodes/processors
numnodes=`wc $PBS_NODEFILE | awk '{print $1}'`
wrkdir=$PBS_O_WORKDIR
prog=/home/mcgratta/FDS4/LINUX_MPI/fds4_mpi
prog_args=""

cd $wrkdir
#
###### Start the program.
#
echo
echo "Starting user program $prog"
date

echo
cmd="mpirun -ssi rpi tcp -np $numnodes $prog"
echo "Run command:$cmd"
$cmd

date
wipe
Reply all
Reply to author
Forward
0 new messages