cluster:124
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| cluster:124 [2016/03/03 18:58] – hmeij07 | cluster:124 [2016/03/11 20:14] (current) – hmeij07 | ||
|---|---|---|---|
| Line 159: | Line 159: | ||
| # submit via 'bsub < run.serial' | # submit via 'bsub < run.serial' | ||
| rm -f *err *out *shell | rm -f *err *out *shell | ||
| - | #BSUB -q mw256 | + | #BSUB -q test |
| #BSUB -n 1 | #BSUB -n 1 | ||
| #BSUB -J test | #BSUB -J test | ||
| Line 165: | Line 165: | ||
| #BSUB -e err | #BSUB -e err | ||
| - | export PATH=/ | + | export PATH=/ |
| - | export LD_LIBRARY_PATH=/ | + | export LD_LIBRARY_PATH=/ |
| # checkpoint file is defined in while loop | # checkpoint file is defined in while loop | ||
| Line 177: | Line 177: | ||
| cp -rp ~/ | cp -rp ~/ | ||
| - | # start the application | + | # on first start of application, remember the working directory |
| # save some stuff for checking later and restart | # save some stuff for checking later and restart | ||
| - | cr_run ./ | + | #cr_run ./ |
| - | process_id=`ps -u hmeij | grep t-20001030-01 | grep -v grep | awk ' | + | #sleep 60 |
| - | pwd > pwd.$process_id | + | #process_id=`ps -u hmeij | grep t-20001030-01 | grep -v grep | awk ' |
| - | cp -p pwd* *.shell *.out *.err ~/blcr/ | + | #pwd > pwd.$process_id |
| + | #cp -p pwd* *.shell *.out *.err ~/blcr/ | ||
| # on restart, give cr_restart some time to set up | # on restart, give cr_restart some time to set up | ||
| # WARNING: it will overwrite the checkpoint file, save it | # WARNING: it will overwrite the checkpoint file, save it | ||
| # you need to find the process_id and supply it | # you need to find the process_id and supply it | ||
| - | #process_id=9089 | + | process_id=4711 |
| - | #cp -p ~/ | + | cp -p ~/ |
| - | #mv ~/ | + | mv ~/ |
| - | #ln -s $MYSANSCRATCH `cat ~/ | + | ln -s $MYSANSCRATCH `cat ~/ |
| - | #cr_restart ~/ | + | cr_restart ~/ |
| - | #sleep 60 | + | sleep 60 |
| + | # always uncommented | ||
| echo " | echo " | ||
| while [ $process_id -gt 0 ]; do | while [ $process_id -gt 0 ]; do | ||
| Line 201: | Line 203: | ||
| cr_checkpoint -f ~/ | cr_checkpoint -f ~/ | ||
| cp -p context ~/blcr/ | cp -p context ~/blcr/ | ||
| - | # if the application has crashed, exit | + | # if the application has crashed, or finished, exit |
| process_id=`ps -u hmeij | grep t-20001030-01 | grep -v grep | awk ' | process_id=`ps -u hmeij | grep t-20001030-01 | grep -v grep | awk ' | ||
| if [ " | if [ " | ||
cluster/124.1457031522.txt.gz · Last modified: by hmeij07
