Skip to content

Instantly share code, notes, and snippets.

@zbeekman
Created April 27, 2016 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zbeekman/9c532e12eca60052e5e4a7f4215565ee to your computer and use it in GitHub Desktop.
Save zbeekman/9c532e12eca60052e5e4a7f4215565ee to your computer and use it in GitHub Desktop.
Proposed modified PBS script
#!/bin/bash
#PBS -l walltime=0:30:00
#PBS -l select=4:ncpus=24:mpiprocs=24
#PBS -q debug
#PBS -A ARLAP96070PET
##############################################################################
# UPDATE THIS LINE AS APPROPRIATE
#
FUN3D_PREFIX=../fun3d-hep-12.8-dc8fb20-taucmdr
#
##############################################################################
source /opt/modules/default/etc/modules.sh
module unload PrgEnv-cray
module load PrgEnv-intel
module swap intel intel/15.0.0.090
module swap cray-mpich cray-mpich/7.2.4
module load python
CONTRIB=~jlinford/fun3d/contrib
PARMETIS_PREFIX=$CONTRIB/parmetis-intel15-4.0.3
TAUCMDR_PREFIX=$PET_HOME/pkgs/taucmdr-0.1
BUILDDIR=$FUN3D_PREFIX/build.taucmdr.intel15.mpich
cd $PBS_O_WORKDIR
if [ ! -d "$FUN3D_PREFIX/.tau" ] ; then
echo "Tau Commander project files not found in \"$FUN3D_PREFIX\" or not accessable from compute nodes"
exit 100
fi
if [ ! -d "$PARMETIS_PREFIX/lib" ] ; then
echo "ParMETIS library files not found. Check \$CONTRIB in ${BASH_SOURCE[0]}"
exit 100
fi
if [ ! -x "$BUILDDIR/usr/local/bin/nodet_mpi" ] ; then
echo "nodet_mpi not found. Check \$BUILDDIR in ${BASH_SOURCE[0]}"
exit 100
fi
export LD_LIBRARY_PATH=$PARMETIS_PREFIX/lib:$LD_LIBRARY_PATH
export PATH=$TAUCMDR_PREFIX/bin:$BUILDDIR/usr/local/bin:$PATH
[ -d ".tau" ] || ln -s "$FUN3D_PREFIX/.tau" .
tau aprun -n 96 nodet_mpi | tee run.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment