-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·36 lines (25 loc) · 846 Bytes
/
Copy pathMakefile
File metadata and controls
executable file
·36 lines (25 loc) · 846 Bytes
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
CFLAGS=-Wno-unused-result -mavx -O3 -std=c99 -g -fopenmp
all: cnn cnnModule.so
cnn: src/cnn.c src/util.c src/main.c src/timestamp.c
gcc $(CFLAGS) src/cnn.c -lm -o cnn
cnnModule.so: src/cnn.c src/python.c src/util.c src/timestamp.c
gcc $(CFLAGS) -shared -fPIC -I/usr/include/python2.7 -o cnnModule.so src/python.c src/cnn.c
starter: cnn_starter
@cd test ; ../cnn benchmark 2400
run: cnnModule.so
@python2.7 cnn.py $(port)
benchmark: cnn
@cd test ; ../cnn benchmark 2400
benchmark-small: cnn
@cd test ; ../cnn benchmark 1200
benchmark-large: cnn
@cd test ; ../cnn benchmark 12000
benchmark-huge: cnn
@cd test ; ../cnn benchmark 24000
test: cnn
@cd test ; bash run_test.sh
test-huge: cnn
@cd test ; bash huge_test.sh
clean:
rm cnn cnnModule.so
.PHONY: run clean benchmark benchmark-small benchmark-large benchmark-huge test