Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support non-standard scripts #5

Open
aturner-epcc opened this issue Jul 17, 2012 · 0 comments
Open

Support non-standard scripts #5

aturner-epcc opened this issue Jul 17, 2012 · 0 comments

Comments

@aturner-epcc
Copy link
Collaborator

Some scripts do not use the standard parallel job launcher command (the use other scripts or other commands). Can bolt be changed to support this - is it worth it? Example below from a STAR-CD job on HECToR:

#!/bin/bash --login
# 
# job name USER CHOICE
#PBS -N rndhts_256
# wall time needed for job (could use cput) USER CHOICE
#PBS -l walltime=00:20:00
# number of MPI tasks USER CHOICE
#PBS -l mppwidth=256
# number of cores per node 
#PBS -l mppnppn=32
# user account number USER SETS VALUE necessary
#PBS -A n02-weat
# import the environment from the launch shell
#PBS -V
#   This last option to PBS assumes that the user has set the STAR environment with
#   . /work/y07/y07/starcd/phase2b/4.14/etc/setstar
#
# Now change directory to the LUSTRE work directory in this case it is where the 
# job was initiated This could be USER CHOICE i.e. it could be set explicitly
cd $PBS_O_WORKDIR

# work out how many MPI tasks were requested

export NTASK=256
# MRI diagnostic - useful for debug
echo "DEBUG: NTASK= $NTASK PBS_O_WORKDIR= $PBS_O_WORKDIR PBS_JOBID is $PBS_JOBID"
#
BNAME=`basename $STARDIR`
DNAME=`dirname $STARDIR`
echo "using BNAME $BNAME and DNAME $DNAME"
###if [ -z $LD_LIBRARY_PATH} ] ; then
###export LD_LIBRARY_PATH=${DNAME}/lib64
###else
echo DEBUG LD_LIBRARY_PATH is $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${DNAME}/lib64:${LD_LIBRARY_PATH}
echo DEBUG LD_LIBRARY_PATH changed to  $LD_LIBRARY_PATH
###fi
#
#  Run STAR
echo "star -mpi=xt -decompflags="MMET,1" -powersuite -scratch=$PBS_O_WORKDIR -notracker $NTASK"
star -mpi=xt -decompflags="MMET,1" -powersuite -scratch=$PBS_O_WORKDIR -notracker $NTASK

# would usually issue "aprun -n $NTASK -a xt (path_to_app)/app <app options>"
# but this has been hard-wired into the Cray variation.
# it assumes all cores per node to be used for MPI
#
# end of job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant