aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--TODO2
-rwxr-xr-xbench.py5
-rw-r--r--src/benchmarks/loop/Makefile6
4 files changed, 13 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1f15996..96bc96c 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ export CXXFLAGS = -std=c++11 $(CFLAGS) -fno-exceptions
export LDFLAGS = -pthread -static-libgcc
export LDXXFLAGS = $(LDFLAGS) -static-libstdc++
-.PHONY: all clean pylint $(MAKEFILES) $(CMAKELISTS)
+.PHONY: all clean pylint yapf tags $(MAKEFILES) $(CMAKELISTS)
all: $(OBJDIR)/ccinfo $(MAKEFILES) $(CMAKELISTS)
$(CMAKELISTS):
@@ -50,3 +50,6 @@ pylint:
yapf:
yapf -i $(PYTHONFILES)
+
+tags:
+ ctags -R --exclude="build/*" --exclude="cache/*" --exclude="doc/*" --exclude="results/*"
diff --git a/TODO b/TODO
index 1691e76..ee52613 100644
--- a/TODO
+++ b/TODO
@@ -33,4 +33,4 @@
- possible benchmarks:
- https://github.com/GraphChi/graphchi-cpp
- - http://glaros.dtc.umn.edu/gkhome/metis/metis/overview \ No newline at end of file
+ - http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
diff --git a/bench.py b/bench.py
index 852bb72..35a6b76 100755
--- a/bench.py
+++ b/bench.py
@@ -167,6 +167,11 @@ def main():
cwd = os.getcwd()
+ # warn about unknown benchmarks
+ for bench in (args.benchmarks or []) + (args.exclude_benchmarks or []):
+ if bench not in src.globalvars.benchmarks:
+ print_error(f'Benchmark "{bench}" unknown!')
+
# Run actual benchmarks
for bench in src.globalvars.benchmarks:
if args.benchmarks and bench not in args.benchmarks:
diff --git a/src/benchmarks/loop/Makefile b/src/benchmarks/loop/Makefile
index b297933..d9d64c2 100644
--- a/src/benchmarks/loop/Makefile
+++ b/src/benchmarks/loop/Makefile
@@ -3,8 +3,8 @@ OBJDIR ?= obj
CC ?= gcc
WARNFLAGS ?= -Wall -Wextra
-COMMONFLAGS ?= -fno-builtin -fPIC -DPIC -pthread
-OPTFLAGS ?= -O3 -DNDEBUG
+COMMONFLAGS ?= -fno-builtin -pthread
+OPTFLAGS ?= -O0 -g
CFLAGS ?= $(OPTFLAGS) $(WARNFLAGS) $(COMMONFLAGS)
@@ -14,7 +14,7 @@ LDFLAGS ?= -pthread -static-libgcc
all: $(OBJDIR)/loop
-$(OBJDIR)/loop: loop.c | $(OBJDIR)
+$(OBJDIR)/loop: loop.c Makefile | $(OBJDIR)
@echo compiling $@...
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<