-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex1_job_array.pbs
34 lines (32 loc) · 1.31 KB
/
ex1_job_array.pbs
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
#!/bin/bash
## Submit job to "Open" allocation if next line begins #PBS
#PBS -A open
## Alternatively, could comment out line above (with ##...) and uncomment 2 lines below (use just one # on each line) to use CyberLAMP
##PBS -A cyberlamp_class
##PBS -l qos=cl_class
## Time requested: 0 hours, 5 minutes, 0 seconds
#PBS -l walltime=00:05:00
## Ask for one core on one node
#PBS -l nodes=1:ppn=1
## Each processors will use no more than 1GB of RAM
#PBS -l pmem=1gb
## combine STDOUT and STDERR into one file
#PBS -j oe
## Specifices job name, so easy to find in qstat
#PBS -N Ast528Lab6Ex1
## Submit a job array with 10 jobs, but limit to 6 jobs running at once
#PBS -t 1-10%6
## Uncomment next 2 PBS commands (by removing one of #'s) and replace with your email if you want to be notifed when jobs start and stop
##PBS -M YOUR_EMAIL_HERE@psu.edu
## Ask for emails when jobs begins, ends or aborts
##PBS -m abe
echo "Starting job $PBS_JOBNAME"
date
echo "Job id: $PBS_JOBID"
echo "Job arrayid: $PBS_ARRAYID"
echo "About to change into $PBS_O_WORKDIR"
cd $PBS_O_WORKDIR # Change into directory where job was submitted from
echo "About to start Julia"
julia ex1_job_array.jl $PBS_ARRAYID
echo "Julia exited"
date