diff options
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | TODO | 2 | ||||
| -rwxr-xr-x | bench.py | 5 | ||||
| -rw-r--r-- | src/benchmarks/loop/Makefile | 6 |
4 files changed, 13 insertions, 5 deletions
@@ -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/*" @@ -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 @@ -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 $@ $< |
