-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
30 lines (20 loc) · 895 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
SUBDIR_TESTING = forward/cnn_forward_test/ forward/batch_test forward/operations_test
SUBDIR_PROFILING = profiling/TimeProfiling profiling/MemoryUsageProfiling
FFT_FILE = fft_fast.cu
WINOGRAD_FILE = winograd_fast.cu
MAKE = make
TARGETS = clean all
.PHONY : ready_project ready_pretrained ready_proto ready_data profilers tests $(SUBDIR_PROFILING) $(SUBDIR_TESTING)
ready_project: ready_pretrained ready_proto ready_data
ready_pretrained:
python ConvertToSpecification.py
ready_proto:
cd proto && protoc -I=. --cpp_out=. ./network.proto
ready_data:
cd forward/data/ && unzip MiniImageNet.zip
profilers: $(SUBDIR_PROFILING)
$(SUBDIR_PROFILING):
$(MAKE) -C $@ $(TARGETS) PROJECT_DIR=$(PWD) FFT_FILE=$(FFT_FILE) WINOGRAD_FILE=$(WINOGRAD_FILE)
tests: $(SUBDIR_TESTING)
$(SUBDIR_TESTING):
$(MAKE) -C $@ $(TARGETS) PROJECT_DIR=$(PWD) FFT_FILE=$(FFT_FILE) WINOGRAD_FILE=$(WINOGRAD_FILE)