User Tools

Site Tools


cluster:106

This is an old revision of the document!



Back

Stata

Some general information for Stata users.

Sample

* save in a script and submit to scheduler

#!/bin/bash

rm -rf err out 

# relevant commands
# find available hosts: bhosts 
# find queues: bqueues 
# submit job: bsub < run
# jobs submmitted: bjobs

#BSUB -q stata
#BSUB -J test
#BSUB -o out
#BSUB -e err

# use n cores (job slots) ... a license limitation of 6
#BSUB -n 6
# force using all on one node (hosts=1) or use the -x flag
#BSUB -R "span[hosts=1]"
# can stata-mp work across nodes? 
# it appears not so (only one out of 3 hosts ran stata-mp).
# if so, raise the hosts=value or control 
# nr of processes per node with tile=value 
####BSUB -R "span[ptile=2]" 


# scratch dirs
MYSANSCRATCH=/sanscratch/$LSB_JOBID
MYLOCALSCRATCH=/localscratch/$LSB_JOBID

# required in 12
export PATH=/share/apps/stata/12:$PATH

# alternate workdir, stage data and/or retrieve results
# cd $MYSANSCRATCH
# cp ~/stata/AllRegions2.dta  ~/stata/nikkei1.dta .
# /share/apps/stata/10/stata-mp -b do wagepan80_87
# assumes output is written back to home, else copy back

# working in home dir
/share/apps/stata/12/stata-mp -b do firm_analysis_cluster


Back

cluster/106.1341945027.txt.gz · Last modified: 2012/07/10 14:30 by hmeij