Add some cuda debugging bits.
authorCarl Hetherington <cth@carlh.net>
Wed, 27 Feb 2019 15:52:02 +0000 (15:52 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 23 Aug 2020 18:33:55 +0000 (20:33 +0200)
run/tests

index e31a97be0c042c58939ce688c55f182ba300462a..33e67221cf74e590f9c6216c4782203c85494ec8 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -26,6 +26,12 @@ elif [ "$1" == "--drd" ]; then
 elif [ "$1" == "--helgrind" ]; then
     shift;
     valgrind --tool="helgrind" build/test/unit-tests $*
+elif [ "$1" == "--nvprof" ]; then
+    shift
+    nvprof --profile-child-processes --print-gpu-summary build/test/unit-tests --catch_system_errors=no $*
+elif [ "$1" == "--cuda-memcheck" ]; then
+    shift
+    cuda-memcheck build/test/unit-tests --catch-system-errors=no $*
 else
     ulimit -c unlimited
     build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*