User Tools

Site Tools


cluster:106

Warning: Undefined array key 4 in /usr/share/dokuwiki/inc/html.php on line 1453

Warning: Undefined array key -1 in /usr/share/dokuwiki/inc/html.php on line 1458

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cluster:106 [2012/07/10 10:51]
hmeij created
cluster:106 [2016/11/21 15:22] (current)
hmeij07 [Sample]
Line 10: Line 10:
 ==== Sample ==== ==== Sample ====
  
-* save in a script abnd submit to scheduler+* save in a script say called ''run'' and submit to scheduler ''bsub < run''
  
 <code> <code>
- 
 #!/bin/bash #!/bin/bash
  
Line 22: Line 21:
 # find queues: bqueues  # find queues: bqueues 
 # submit job: bsub < run # submit job: bsub < run
-# jobs submmitted: bjobs+show jobs submitted: bjobs
  
 #BSUB -q stata #BSUB -q stata
-#BSUB -R "span[hosts=1]" 
 #BSUB -J test #BSUB -J test
 #BSUB -o out #BSUB -o out
 #BSUB -e err #BSUB -e err
  
-# use all cores per node +# use cores (job slots) ... a license limitation of 6 
-note the span forces all on one node or use the -x flag +#BSUB -n 6 
-#BSUB -n 8 +# force using all on one node (hosts=1)  
-# can stata-mp work across nodes? +#BSUB -R "span[hosts=1]" 
-if so, raise the hosts=value or control  + 
-# process per node with span=value +# can stata-mp work across nodes?  
 +it appears not 
  
 # scratch dirs # scratch dirs
 MYSANSCRATCH=/sanscratch/$LSB_JOBID MYSANSCRATCH=/sanscratch/$LSB_JOBID
 MYLOCALSCRATCH=/localscratch/$LSB_JOBID MYLOCALSCRATCH=/localscratch/$LSB_JOBID
-export PATH+ 
 +# required in 12 
 +export PATH=/share/apps/stata/12:$PATH
  
 # alternate workdir, stage data and/or retrieve results # alternate workdir, stage data and/or retrieve results
 # cd $MYSANSCRATCH # cd $MYSANSCRATCH
-# cp ~/stata/AllRegions2.dta  ~/stata/nikkei1.dta .+# cp ~/stata/AllRegions2.dta  ~/stata/nikkei1.dta  .
 # /share/apps/stata/10/stata-mp -b do wagepan80_87 # /share/apps/stata/10/stata-mp -b do wagepan80_87
-# assumes output is written back to home, else copy back+# assumes output is written back to home, else copy results to ~/stata/
  
 # working in home dir # working in home dir
-/share/apps/stata/10/stata-mp -b do firm_analysis_cluster+cd ~/stata/ 
 +/share/apps/stata/12/stata-mp -b do firm_analysis_cluster
  
  
cluster/106.1341931913.txt.gz · Last modified: 2012/07/10 10:51 by hmeij