-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (45 loc) · 1.35 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
# Compiler
CC = g++-12
CPP_FILES := $(wildcard cudann/*/*/*.cpp)
# Compiler flags
CC_FLAGS = -O3
# Compile layers test
compile_layers: cudann/test/test_layers.cpp
$(CC) -o cudann/test/test_layers cudann/test/test_layers.cpp $(CPP_FILES)
# Compile and test layers
test_layers:
make compile_layers
cudann/test/test_layers
rm cudann/test/test_layers
# Compile criterion test
compile_criterion: cudann/test/test_criterion.cpp
$(CC) -o cudann/test/test_criterion cudann/test/test_criterion.cpp $(CPP_FILES)
# Compile and test criterion
test_criterion:
make compile_criterion
cudann/test/test_criterion
rm cudann/test/test_criterion
# Compile model test
compile_model: cudann/test/test_model.cpp
$(CC) -o cudann/test/test_model cudann/test/test_model.cpp $(CPP_FILES)
# Compile and test model
test_model:
make compile_model
cudann/test/test_model
rm cudann/test/test_model
# Compile random
compile_random: cudann/test/test_random.cpp
$(CC) -o cudann/test/test_random cudann/test/test_random.cpp $(CPP_FILES)
# Compile and test random
test_random:
make compile_random
cudann/test/test_random
rm cudann/test/test_random
# Compile mnist
compile_mnist: cudann/test/test_mnist.cpp
$(CC) -o cudann/test/test_mnist cudann/test/test_mnist.cpp $(CPP_FILES)
# Compile and test mnist
test_mnist:
make compile_mnist
cudann/test/test_mnist
rm cudann/test/test_mnist