summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-02-27 15:52:02 +0000
committerCarl Hetherington <cth@carlh.net>2020-08-23 20:33:55 +0200
commitff5b37ec9f996ded3620c2896e3f19af0532ac0f (patch)
tree11ff513e5f80b39e715bb4f7c3d621c178294e26
parent10a0c758dc59b1fb9e2f961485240e80f118eb9d (diff)
Add some cuda debugging bits.
-rwxr-xr-xrun/tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/run/tests b/run/tests
index e31a97be0..33e67221c 100755
--- 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 $*