summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2021-03-09 03:48:35 -0500
committerJoshua Bakita <jbakita@cs.unc.edu>2021-03-09 03:48:35 -0500
commit9ec5cb49c42833360db60806e2a3571f69a858b4 (patch)
tree66edcf42db33630444b970a0ba58afabf1673b28
parentfeb4d5e540216dea5902c2af765ac48254336226 (diff)
Benchmarks: Make sure we always build with the correct config
The current implementation of this is terrible, but seems to work. This should probably be replaced with some compile-time defines.
-rw-r--r--Makefile7
-rwxr-xr-xrun_all_dis.sh3
-rwxr-xr-xrun_all_sd-vbs.sh3
-rwxr-xr-xrun_all_tacle.sh3
4 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ada4b16..a473a20 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,13 @@
1 1
2case-study: 2case-study:
3 sed -i "s/LITMUS 0/LITMUS 1/g" extra.h
3 $(MAKE) -C baseline all 4 $(MAKE) -C baseline all
4 $(MAKE) -C dis baseline 5 $(MAKE) -C dis baseline
5 $(MAKE) -C SD-VBS/benchmarks compile 6 $(MAKE) -C SD-VBS/benchmarks compile
6 7
8benchmarks:
9 sed -i "s/LITMUS 1/LITMUS 0/g" extra.h
10 $(MAKE) -C baseline all
11 $(MAKE) -C all_pairs all
12 $(MAKE) -C dis pairs
13 $(MAKE) -C SD-VBS/benchmarks CFLAGS=-DPAIRED compile
diff --git a/run_all_dis.sh b/run_all_dis.sh
index 588538d..3907789 100755
--- a/run_all_dis.sh
+++ b/run_all_dis.sh
@@ -16,6 +16,9 @@ if [[ "$EUID" != 0 ]]; then
16fi 16fi
17date 17date
18 18
19# Configure libextra for benchmarking
20sed -i "s/LITMUS 1/LITMUS 0/g" extra.h
21
19# Run the pairs baseline and some comparisons to examine the effect of less cache 22# Run the pairs baseline and some comparisons to examine the effect of less cache
20echo "Building benchmarks in unpaired configuration..." 23echo "Building benchmarks in unpaired configuration..."
21cd dis 24cd dis
diff --git a/run_all_sd-vbs.sh b/run_all_sd-vbs.sh
index 1f5948d..6be9c87 100755
--- a/run_all_sd-vbs.sh
+++ b/run_all_sd-vbs.sh
@@ -16,6 +16,9 @@ if [[ "$EUID" != 0 ]]; then
16fi 16fi
17date 17date
18 18
19# Configure libextra for benchmarking
20sed -i "s/LITMUS 1/LITMUS 0/g" extra.h
21
19# Run the pairs baseline and some comparisons to examine the effect of less cache 22# Run the pairs baseline and some comparisons to examine the effect of less cache
20echo "Building benchmarks in unpaired configuration..." 23echo "Building benchmarks in unpaired configuration..."
21cd SD-VBS/benchmarks 24cd SD-VBS/benchmarks
diff --git a/run_all_tacle.sh b/run_all_tacle.sh
index 51a9c24..4729ada 100755
--- a/run_all_tacle.sh
+++ b/run_all_tacle.sh
@@ -16,6 +16,9 @@ if [[ "$EUID" != 0 ]]; then
16fi 16fi
17date 17date
18 18
19# Configure libextra for benchmarking
20sed -i "s/LITMUS 1/LITMUS 0/g" extra.h
21
19# Run the pairs baseline and some comparisons to examine the effect of less cache 22# Run the pairs baseline and some comparisons to examine the effect of less cache
20cd baseline 23cd baseline
21make all -j32 24make all -j32