summaryrefslogtreecommitdiffstats
path: root/dis/original/Makefile
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2020-06-11 21:29:50 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2020-06-11 21:29:50 -0400
commit3d7bc39109895130d7de703893dd5aa7448b01cd (patch)
tree8efec2a469323c81f56d8f063f9baa97486456bb /dis/original/Makefile
parente696d1040a200a47dc7efc21653e582653d1f6ee (diff)
Add random_walk microbenchmark
A heavily rewritten version of mc2spin as written by Namhoon.
Diffstat (limited to 'dis/original/Makefile')
-rwxr-xr-xdis/original/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/dis/original/Makefile b/dis/original/Makefile
index 7ff5e2a..9f7286d 100755
--- a/dis/original/Makefile
+++ b/dis/original/Makefile
@@ -1,12 +1,12 @@
1LIBLITMUS ?= /media/speedy/litmus/liblitmus 1LIBLITMUS ?= /media/speedy/litmus/liblitmus
2CC ?= gcc 2CC ?= gcc
3CFLAGS = -pthread -O2 -g -I../../baseline/source 3override CFLAGS += -pthread -O2 -ggdb3 -I../../baseline/source
4LDFLAGS = -lrt -lm 4LDFLAGS = -lrt -lm
5COMMON = ../../baseline/source/extra.h 5COMMON = ../../baseline/source/extra.h
6 6
7# Handle cases where we're also profiling with the MMDC on the i.MX6Q 7# Handle cases where we're also profiling with the MMDC on the i.MX6Q
8ifneq ($(shell grep "define MMDC 1" ../../baseline/source/extra.h),) 8ifneq ($(shell grep "define MMDC 1" ../../baseline/source/extra.h),)
9»···COMMON += /media/speedy/litmus/tools/mmdc/mmdc.c 9 COMMON += /media/speedy/litmus/tools/mmdc/mmdc.c
10endif 10endif
11 11
12# Include all the LITMUS^RT headers if we're using it 12# Include all the LITMUS^RT headers if we're using it
@@ -16,11 +16,11 @@ ifneq ($(shell grep "define LITMUS 1" ../../baseline/source/extra.h),)
16endif 16endif
17 17
18 18
19all: field matrix neighborhood pointer transitive update 19all: field matrix neighborhood pointer transitive update random_walk
20 20
21.PHONY: clean 21.PHONY: clean
22clean: 22clean:
23 rm field matrix neighborhood pointer transitive update 23 rm field matrix neighborhood pointer transitive update random_walk
24 24
25field: ${COMMON} ./Field/field.c 25field: ${COMMON} ./Field/field.c
26 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) 26 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
@@ -34,3 +34,5 @@ transitive: ${COMMON} ./Transitive/transitive.c
34 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) 34 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
35update: ${COMMON} ./Update/update.c 35update: ${COMMON} ./Update/update.c
36 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) 36 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
37random_walk: ${COMMON} random_walk.c
38 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)