-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjob_submit_d2q9-bgk
53 lines (40 loc) · 1.3 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
44
45
46
47
48
49
50
51
52
#!/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:15:00
#! Mail to user if job aborts
#PBS -m a
# Select the GPU that we've been allocated
device=$(cat $PBS_GPUFILE)
device=${device#*gpu}
export OCL_DEVICE=$device
#! application name
application="./d2q9-bgk"
#! Run options for the application
#!options="input_128x128.params obstacles_128x128.dat"
#!options="input_128x256.params obstacles_128x256.dat"
#!options="input_256x256.params obstacles_256x256.dat"
options="input_1024x1024.params obstacles_1024x1024.dat"
#!source ~jp8463/icd/intel.sh
###############################################################
### 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
$application $options
$application $options
$application $options
$application $options