forked from jmellorcrummey/parallel-elfutils
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcl_perf.sh
More file actions
35 lines (28 loc) · 650 Bytes
/
cl_perf.sh
File metadata and controls
35 lines (28 loc) · 650 Bytes
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
#!/bin/bash
#SBATCH --exclusive
#SBATCH --time=6:00:00
#SBATCH -N 1 -n 1 -c 16
#SBATCH -o cl_perf.out
TEST=hpc/output.hpcstruct-bin.biginputs_libdyninstAPI.so
if [ -z "$1" ]; then
RUN=latest
else
RUN="$1"
fi
rm -f profresults/$RUN/run.*.lua
mkdir -p profresults/$RUN
for rep in 1 2 3 4 5; do
echo "----------------"
echo "REP $rep"
echo "----------------"
rm -rf tests/$TEST.prof.*
for threads in 1 2 4 8 16; do
while ! make -C tests $TEST.prof.$threads
do rm -rf tests/$TEST.prof.*
done
cd profresults
lua hpcdump.lua ../tests/$TEST.prof.$threads > $RUN/run.$threads.$rep.lua
cd ..
done
done
make -C tests run NONE=1 PROF=1 STABLE=1 BIGGER=1