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 abnd 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 -R "span[hosts=1]"
#BSUB -J test
#BSUB -o out
#BSUB -e err

# use all cores per node
# note the span forces all on one node or use the -x flag
#BSUB -n 8
# can stata-mp work across nodes?
# if so, raise the hosts=value or control 
# process per node with span=value 

# scratch dirs
MYSANSCRATCH=/sanscratch/$LSB_JOBID
MYLOCALSCRATCH=/localscratch/$LSB_JOBID
export 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/10/stata-mp -b do firm_analysis_cluster


Back

cluster/106.1341931913.txt.gz · Last modified: 2012/07/10 10:51 by hmeij