-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathidle-experiment.sh
executable file
·49 lines (46 loc) · 1.66 KB
/
idle-experiment.sh
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
#!/bin/bash
#programs[0]="./microbenchmarks/compute 2000000000"
#programs[1]="./HPCCG-1.0/HPCCG.x 64 64 64"
#programs[2]="./miniFE-2.0/miniFE-2.0_openmp_opt/src/miniFE.x nx=100 ny=100 nz=100"
#programs[3]="./lulesh2.0.3/lulesh2.0 "
#programs[4]="./graph500-2.1.4/omp-csr/graph500.x -s 20"
#programs[5]="./NPB3.3/NPB3.3-OMP/bin/bt.A "
#programs[6]="./NPB3.3/NPB3.3-OMP/bin/cg.A "
#programs[7]="./NPB3.3/NPB3.3-OMP/bin/dc.A "
#programs[8]="./NPB3.3/NPB3.3-OMP/bin/ep.A "
#programs[9]="./NPB3.3/NPB3.3-OMP/bin/ft.A "
#programs[10]="./NPB3.3/NPB3.3-OMP/bin/is.A "
#programs[11]="./NPB3.3/NPB3.3-OMP/bin/lu.A "
#programs[12]="./NPB3.3/NPB3.3-OMP/bin/mg.A "
#programs[13]="./NPB3.3/NPB3.3-OMP/bin/sp.A "
#programs[14]="./NPB3.3/NPB3.3-OMP/bin/ua.A "
programs[0]="./microbenchmarks/idle "
for idle in 0 3 11 81 105 110
do
./setcpulatency $idle &
max_iters=10
for i in `seq $max_iters`
do
export OMP_NUM_THREADS=24
export OMP_PLACES=sockets
export OMP_PROC_BIND=TRUE
/home/eric/eaudit/tracing/eaudit-wrapper \
-t \
-i "threads=24" \
-p "PAPI_L3_TCM" \
-p "PAPI_TOT_INS" \
-p "PAPI_LD_INS" \
-p "PAPI_SR_INS" \
-p "PAPI_BR_INS" \
-g "rapl:::PACKAGE_ENERGY:PACKAGE0" \
-g "rapl:::DRAM_ENERGY:PACKAGE0" \
-g "rapl:::PACKAGE_ENERGY:PACKAGE1" \
-g "rapl:::DRAM_ENERGY:PACKAGE1" \
./microbenchmarks/idle
done
kill $!
name=`echo "idle $idle" | awk '{print $1}' | awk -F "/" '{print $NF}'`
paste <(echo -e "application\n$name") wrapped.csv >> results.csv
rm wrapped.csv
chmod 666 results.csv
done