-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjob_submit_d2q9-bgk
43 lines (32 loc) · 1.09 KB
/
job_submit_d2q9-bgk
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
37
38
39
40
41
42
43
#!/bin/bash
#PBS -N d2q9-bgk
#PBS -joe
#PBS -o d2q9-bgk.out
#PBS -q teaching
#PBS -l epilogue=~ggdagw/epilogue.sh
#PBS -l nodes=1:gpus=1,walltime=00:25:00
#! Mail to user if job aborts
#PBS -m a
# Select the GPU that we've been allocated
export THEANO_FLAGS='floatX=float32,device=gpu0,lib.cnmem=1'
export CUDA_ROOT=$CUDA_PATH/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_PATH/lib64
#! application name
application="python Run.py"
#! Run options for the application
options=""
###############################################################
### You should not have to change anything below this line ####
###############################################################
#! change the working directory (default is home directory)
cd $PBS_O_WORKDIR
echo Running on host `hostname`
echo Time is `date`
echo Directory is `pwd`
echo PBS job ID is $PBS_JOBID
echo This jobs runs on the following machines:
echo `cat $PBS_NODEFILE | uniq`
echo "Using GPU at index $device"
numcores=`wc $PBS_NODEFILE | awk '{ print $1 }'`
#! Run the executable
$application $options