diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-03-16 18:43:33 +0100 |
---|---|---|
committer | Tom Tsou <tom@tsou.cc> | 2017-05-19 16:57:25 +0000 |
commit | dfe0aef184e5c98136a38f6c604a9f6171574671 (patch) | |
tree | c267739b913a8c9e68901be620e82a82932802b8 /utils/convolvetest/Makefile | |
parent | 131f82bfacc1b677a87e66746208e53fba40ff41 (diff) |
Add test program to verify convolution implementation
Convolution is a complex process and we should be able to verify
if computing results change when the implementation is touched.
This commit adds a test program that executes some testcases.
The testcases are crafted in a way that every implmentation
(several different ones for SSE) is executed once. The output
can be compared against the included .ok file.
Change-Id: Ic702ecb356c652fbcd76bee689717fb5d3526fe9
Diffstat (limited to 'utils/convolvetest/Makefile')
-rw-r--r-- | utils/convolvetest/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/convolvetest/Makefile b/utils/convolvetest/Makefile new file mode 100644 index 0000000..0ce4cb1 --- /dev/null +++ b/utils/convolvetest/Makefile @@ -0,0 +1,16 @@ +all: main.o convolve_base.o convolve.o + gcc -g -Wall ./*.o -o convtest -losmocore + +clean: + rm -f ./*.o + rm -f ./convtest + +main.o: main.c + gcc -g -Wall -c main.c + +convolve_base.o: ../../Transceiver52M/common/convolve_base.c + gcc -std=c99 -c ../../Transceiver52M/common/convolve_base.c + +convolve.o: ../../Transceiver52M/x86/convolve.c + gcc -std=c99 -c ../../Transceiver52M/x86/convolve.c -I ../../Transceiver52M/common/ -msse3 -DHAVE_SSE3 + |