Difference between revisions of "Talk:Useful PBS scripts"
Jump to navigation
Jump to search
import>Mm695 |
import>Mm695 (CPMD runscript for when several nodes are used) |
||
Line 1: | Line 1: | ||
− | #PBS -q s32 |
+ | ##PBS -q s32 |
+ | |||
− | #PBS -l walltime=18:00:00 |
||
− | #PBS -l |
+ | ##PBS -l walltime=18:00:00 |
+ | |||
+ | ##PBS -l nodes=8:ppn=4 |
||
+ | |||
HERE=/home/mm695/whatever |
HERE=/home/mm695/whatever |
||
+ | |||
file=dho2498_singlePoint |
file=dho2498_singlePoint |
||
+ | |||
inpfile=${file}.inp |
inpfile=${file}.inp |
||
+ | |||
outfile=${file}.out |
outfile=${file}.out |
||
+ | |||
SCRATCH=/scratch/mm695/$file |
SCRATCH=/scratch/mm695/$file |
||
nodes=`cat $PBS_NODEFILE | uniq` |
nodes=`cat $PBS_NODEFILE | uniq` |
||
+ | |||
for node in $nodes |
for node in $nodes |
||
do |
do |
||
Line 21: | Line 29: | ||
exe=/home/mm695/SOURCE/cpmd.x |
exe=/home/mm695/SOURCE/cpmd.x |
||
+ | |||
pp=/home/mm695/pseudopot |
pp=/home/mm695/pseudopot |
||
cd $SCRATCH |
cd $SCRATCH |
||
− | + | ||
# |
# |
||
− | # Write out some helpful info to the output file |
+ | ## Write out some helpful info to the output file |
# |
# |
||
echo "Starting job $PBS_JOBID" |
echo "Starting job $PBS_JOBID" |
||
Line 43: | Line 52: | ||
done |
done |
||
− | echo |
||
− | echo |
||
qstat -f $PBS_JOBID |
qstat -f $PBS_JOBID |
Revision as of 17:29, 12 March 2008
- PBS -q s32
- PBS -l walltime=18:00:00
- PBS -l nodes=8:ppn=4
HERE=/home/mm695/whatever
file=dho2498_singlePoint
inpfile=${file}.inp
outfile=${file}.out
SCRATCH=/scratch/mm695/$file
nodes=`cat $PBS_NODEFILE | uniq`
for node in $nodes
do rsh $node "rm -f $SCRATCH/*" rsh $node "rmdir $SCRATCH" rsh $node "mkdir $SCRATCH" rsh $node "cp ${HERE}/gromos* $SCRATCH" rsh $node "cp ${HERE}/geom_end_of_sim.crd $SCRATCH" rsh $node "cp ${HERE}/RESTART $SCRATCH" rsh $node "cp ${HERE}/${inpfile} $SCRATCH" done
exe=/home/mm695/SOURCE/cpmd.x
pp=/home/mm695/pseudopot
cd $SCRATCH
-
- Write out some helpful info to the output file
echo "Starting job $PBS_JOBID" echo echo "PBS assigned me this node:" cat $PBS_NODEFILE echo
mvapichwrapper $exe $inpfile $pp > ${HERE}/${outfile}
for node in $nodes
do rsh $node 'mv ${SCRATCH}/* ${HERE}' rsh $node 'rm -f ${SCRATCH}/*' rsh $node 'rmdir /scratch/mm695/$file' done
qstat -f $PBS_JOBID