-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopennmp_submit
46 lines (34 loc) · 1.09 KB
/
opennmp_submit
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
#!/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:ppn=16,walltime=00:15:00
#! Mail to user if job aborts
#PBS -m a
#! application name
application="./d2q9-bgk"
#! Run options for the application
options="input_256x256.params obstacles_256x256.dat"
module add languages/intel-compiler-16
#!module add languages/gcc-5.0
#!export TAU_METRICS=TIME,PAPI_FP_INS,PAPI_L1_DCM
#!export TAU_SAMPLING=1
###############################################################
### 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`
numnodes=`wc $PBS_NODEFILE | awk '{ print $1 }'`
export OMP_NUM_THREADS=$numnodes
export OMP_PROC_BIND=TRUE
export OMP_WAIT_POLICY=ACTIVE
#! Run the executable
$application $options