Difference between revisions of "PBS job script for Parallel OPENMPI"

From Computational Biophysics and Materials Science Group
Jump to: navigation, search
(Created page with "Sample job script for Parallel OPENMPI #PBS -S /bin/bash #PBS -N namd_outf_unsym #PBS -l nodes=4 ppn=16 #PBS -m e #PBS -r n ##PBS -W depend=afterany 2528 # NAMD_PAT...")
 
m
 
Line 5: Line 5:
 
  #PBS -l nodes=4 ppn=16
 
  #PBS -l nodes=4 ppn=16
 
  #PBS -m e
 
  #PBS -m e
#PBS -r n
 
##PBS -W depend=afterany 2528
 
 
  #
 
  #
 
   
 
   

Latest revision as of 12:11, 31 July 2014

Sample job script for Parallel OPENMPI

#PBS -S /bin/bash
#PBS -N namd_outf_unsym
#PBS -l nodes=4 ppn=16
#PBS -m e
#

NAMD_PATH=/share/apps/NAMD_2.9_Linux-x86_64-multicore

NAMD=$NAMD_PATH/namd2
CHARMRUN=$NAMD_PATH/charmrun

cd /share/data/kevin/BAR-PH/raw/unsym/oforce_qsub
cat $PBS_NODEFILE >> /tmp/nodefile.$$
NP=`cat $PBS_NODEFILE | wc -l`
NN=`cat $PBS_NODEFILE | sort | uniq | tee /tmp/nodes.$$ | wc -l`

mpirun -n $NP $NAMD NPT-outputf.namd > ./output/unsym_outf.log
wait

Save the above script to a job.sh,

qsub job.sh

submits the job. Simple as it seems.