[libfann] 105/242: more debug stuff
Christian Kastner
chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:10:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
chrisk-guest pushed a commit to tag Version2_0_0
in repository libfann.
commit 9fbb4eba44fa4903d14ea398283bb0be8b56f3bd
Author: Steffen Nissen <lukesky at diku.dk>
Date: Thu Mar 18 14:46:07 2004 +0000
more debug stuff
---
examples/Makefile | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/examples/Makefile b/examples/Makefile
index 8630fb9..e5f24a7 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -2,7 +2,7 @@
# The make file requires that the fann library is installed (see ../README)
TARGETS = xor_train xor_test xor_test_fixed simple_train steepness_train simple_test
-DEBUG_TARGETS = xor_train_debug xor_test_debug
+DEBUG_TARGETS = xor_train_debug xor_test_debug xor_test_fixed_debug
all: $(TARGETS)
@@ -30,22 +30,38 @@ runtest: $(TARGETS)
#below this line is only for debugging the fann library
-rundebug: $(TARGETS)
+rundebugtest: $(DEBUG_TARGETS)
@echo
@echo Training network
- valgrind --leak-check=yes --show-reachable=yes --leak-resolution=high ./xor_train
+ ./xor_train_debug
@echo
@echo Testing network with floats
- valgrind --leak-check=yes --show-reachable=yes --leak-resolution=high ./xor_test
+ ./xor_test_debug
@echo
@echo Testing network with fixed points
- valgrind --leak-check=yes --show-reachable=yes --leak-resolution=high ./xor_test_fixed
-
+ ./xor_test_fixed_debug
debug: $(DEBUG_TARGETS)
%_debug: %.c Makefile
gcc -O -ggdb -lm -DDEBUG -I../src/ -I../src/include/ ../src/floatfann.c $< -o $@
+%_fixed_debug: %.c Makefile
+ gcc -O -ggdb -lm -DDEBUG -DFIXEDFANN -I../src/ -I../src/include/ ../src/fixedfann.c $< -o $@
+
+rundebug: $(TARGETS)
+ @echo
+ @echo Training network
+ valgrind --leak-check=yes --show-reachable=yes --leak-resolution=high ./xor_train
+
+ @echo
+ @echo Testing network with floats
+ valgrind --leak-check=yes --show-reachable=yes --leak-resolution=high ./xor_test
+
+ @echo
+ @echo Testing network with fixed points
+ valgrind --leak-check=yes --show-reachable=yes --leak-resolution=high ./xor_test_fixed
+
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git
More information about the debian-science-commits
mailing list