-
Notifications
You must be signed in to change notification settings - Fork 48
/
Makefile
46 lines (37 loc) · 923 Bytes
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
BENCHMARKS=\
aes/aes \
bfs/bulk \
bfs/queue \
fft/strided \
fft/transpose \
gemm/ncubed \
gemm/blocked \
kmp/kmp \
md/knn \
md/grid \
nw/nw \
sort/merge \
sort/radix \
spmv/crs \
spmv/ellpack \
stencil/stencil2d \
stencil/stencil3d \
viterbi/viterbi
#FIXME\
backprop/backprop \
CFLAGS=-O3 -Wall -Wno-unused-label
.PHONY: build run generate all test clean
build:
@( for b in $(BENCHMARKS); do $(MAKE) CFLAGS="$(CFLAGS)" -C $$b; done )
run:
@( for b in $(BENCHMARKS); do $(MAKE) CFLAGS="$(CFLAGS)" -C $$b run; done )
generate:
@( for b in $(BENCHMARKS); do $(MAKE) CFLAGS="$(CFLAGS)" -C $$b generate; done )
### For regression tests
all: clean build generate run
test:
$(MAKE) -C common/test
$(MAKE) all CFLAGS="-O3 -Wall -Wno-unused-label -Werror"
$(MAKE) all CFLAGS="-O3 -Wall -Wno-unused-label -Werror -std=c99"
clean:
@( for b in $(BENCHMARKS); do $(MAKE) -C $$b clean || exit ; done )