-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_sim.sh
More file actions
36 lines (32 loc) · 1.17 KB
/
run_sim.sh
File metadata and controls
36 lines (32 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# Use the bash shell to interpret this job script
#$ -S /bin/bash -t 1-100 -tc 20 -l m_mem_free=8G
#
# Send an e-mail to the address
# specified in .sge_request when this job ends.
##$ -m e
#
# Only submit this job to nodes
# that have at least 8GB of RAM free.
##$ -l mem_requested=8G, h_vmem=8G
# Put the hostname, current directory, and start date
# into variables, then write them to the SGE standard output file.
# Having this information in your output file will help track down
# any errors which might occur during the job's run.
WRKHOST=`/bin/hostname`
WRKDIR=`/bin/pwd`
STRTDATE=`/bin/date`
echo "**** JOB STARTED ON $WRKHOST AT $STRTDATE"
echo "**** JOB RUNNING IN $WRKDIR"
# SGE jobs do not run in your login environment, so you'll need to
# load your environment, or atleast the modules your script needs to run
#source /net/gs/vol1/home/aclark4/.bashrc
# also load any modules as needed
source /etc/profile.d/modules.sh
module load modules modules-init modules-gs
module load python/2.7.3
module load numpy/latest
module load scipy/latest
# Script or command(s) to run via SGE
cd /net/gs/vol1/home/aclark4/population_structure/code
python sim.py $SGE_TASK_ID .5