-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_plots.sh
More file actions
executable file
·32 lines (25 loc) · 1.2 KB
/
generate_plots.sh
File metadata and controls
executable file
·32 lines (25 loc) · 1.2 KB
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
#!/bin/bash -e
if [ "$(basename "$(pwd)")" = "scripts" ]; then
cd ..
fi
mkdir -p results
if [ -d results/PolybenchC-tbb ] && scripts/parse_data.sh results/PolybenchC-tbb/extralarge-data > results/polybench-c-tbb.csv; then
echo Plotting polybench-c-tbb
scripts/plot-para.R results/polybench-c-tbb.csv 1.3 2.2
fi
if [ -d results/PolyBenchGPU ] && scripts/parse_data.sh results/PolyBenchGPU/data > results/polybench-gpu.csv; then
echo Plotting polybench-gpu
scripts/plot-others.R results/polybench-gpu.csv 1.3 2.2
fi
if [ -d results/PolybenchC ] && scripts/parse_data.sh results/PolybenchC/extralarge-data > results/polybench-c.csv; then
echo Plotting polybench-c
scripts/plot-polybench.R results/polybench-c.csv 4 2.5
fi
if [ -d results/PolybenchC-tuned ] && scripts/parse_data.sh results/PolybenchC-tuned/extralarge-data > results/polybench-c-tuned.csv; then
echo Plotting polybench-c-tuned
scripts/plot-others.R results/polybench-c-tuned.csv 1.3 2.2
fi
if [ -d results/PolybenchC-omp ] && scripts/parse_data.sh results/PolybenchC-omp/extralarge-data > results/polybench-c-omp.csv; then
echo Plotting polybench-c-omp
scripts/plot-para.R results/polybench-c-omp.csv 1.3 2.2
fi