Skip to content

Commit 49a6fc8

Browse files
Added conv1d arch, test and dependencies to Make files
1 parent 017ce72 commit 49a6fc8

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

c_reference/src/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ include ../config.mk
66
INCLUDE_DIR=../include
77
IFLAGS = -I $(INCLUDE_DIR)
88

9-
all: utils.o fastgrnn.o classifier.o rnnpool.o quantized_utils.o quantized_fastgrnn.o quantized_rnnpool.o quantized_mbconv.o
9+
all: utils.o fastgrnn.o classifier.o rnnpool.o quantized_utils.o quantized_fastgrnn.o quantized_rnnpool.o quantized_mbconv.o conv1d.o conv_utils.o
10+
11+
conv_utils.o : conv_utils.c
12+
$(CC) -o $@ $(IFLAGS) $(CFLAGS) -c $^
13+
14+
conv1d.o : conv1d.c
15+
$(CC) -o $@ $(IFLAGS) $(CFLAGS) -c $^
1016

1117
utils.o: utils.c
1218
$(CC) -o $@ $(IFLAGS) $(CFLAGS) -c $^

c_reference/tests/Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@ INCLUDE_DIR=../include
77
SRC_DIR=../src
88
IFLAGS = -I $(INCLUDE_DIR)
99

10-
all: test_fastgrnn_lr test_rnnpool test_quantized_utils test_quantized_fastgrnn test_quantized_rnnpool test_quantized_mbconv
10+
all: test_conv1d test_conv1d_depth test_conv1d_lr test_conv1d_lr_depth test_fastgrnn_lr test_rnnpool test_quantized_utils test_quantized_fastgrnn test_quantized_rnnpool test_quantized_mbconv
11+
12+
CONV1D_DIR=conv1d
13+
test_conv1d: $(CONV1D_DIR)/conv1d_regular/test_conv1d.c $(SRC_DIR)/conv_utils.o $(SRC_DIR)/conv1d.o
14+
$(CC) -o $@ $^ $(IFLAGS) $(CFLAGS) -lm
15+
test_conv1d_depth: $(CONV1D_DIR)/conv1d_depthwise/test_conv1d_depth.c $(SRC_DIR)/conv_utils.o $(SRC_DIR)/conv1d.o
16+
$(CC) -o $@ $^ $(IFLAGS) $(CFLAGS) -lm
17+
test_conv1d_lr: $(CONV1D_DIR)/conv1d_lr/test_conv1d_lr.c $(SRC_DIR)/conv_utils.o $(SRC_DIR)/conv1d.o
18+
$(CC) -o $@ $^ $(IFLAGS) $(CFLAGS) -lm
19+
test_conv1d_lr_depth: $(CONV1D_DIR)/conv1d_lr_depthwise/test_conv1d_lr_depth.c $(SRC_DIR)/conv_utils.o $(SRC_DIR)/conv1d.o
20+
$(CC) -o $@ $^ $(IFLAGS) $(CFLAGS) -lm
1121

1222
FASTGRNN_DIR=fastgrnn
1323
test_fastgrnn_lr: $(FASTGRNN_DIR)/test_fastgrnn_lr.c $(SRC_DIR)/utils.o $(SRC_DIR)/fastgrnn.o $(SRC_DIR)/classifier.o
@@ -32,7 +42,7 @@ test_quantized_mbconv: $(MBCONV_DIR)/test_quantized_mbconv.c $(SRC_DIR)/quantize
3242
.PHONY: clean cleanest
3343

3444
clean:
35-
rm -f *.o *.gch test_fastgrnn_lr test_rnnpool test_quantized_utils test_quantized_fastgrnn test_quantized_rnnpool
45+
rm -f *.o *.gch test_conv1d test_conv1d_depth test_conv1d_lr test_conv1d_lr_depth test_fastgrnn_lr test_rnnpool test_quantized_utils test_quantized_fastgrnn test_quantized_rnnpool test_quantized_mbconv
3646

3747
cleanest: clean
3848
rm *~

0 commit comments

Comments
 (0)