summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Ribizel <ribizel@kit.edu>2020-11-05 14:39:53 (GMT)
committerBrad King <brad.king@kitware.com>2020-11-05 15:04:44 (GMT)
commitfb98883e2b06a5c477cc27c00bd8196590eb6fa9 (patch)
tree62bad1b2424e9fa4d6e176cd27b607d4c872ba0c
parent39f32f12100a7f06f52cd53875b2a5729e9404a6 (diff)
downloadCMake-fb98883e2b06a5c477cc27c00bd8196590eb6fa9.zip
CMake-fb98883e2b06a5c477cc27c00bd8196590eb6fa9.tar.gz
CMake-fb98883e2b06a5c477cc27c00bd8196590eb6fa9.tar.bz2
CTest: Add cuda-memcheck to Dart and CTest module
Issue: #21388
-rw-r--r--Modules/CTest.cmake2
-rw-r--r--Modules/DartConfiguration.tcl.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake
index 8109108..8265bd2 100644
--- a/Modules/CTest.cmake
+++ b/Modules/CTest.cmake
@@ -174,7 +174,7 @@ if(BUILD_TESTING)
"How many times to retry timed-out CTest submissions.")
find_program(MEMORYCHECK_COMMAND
- NAMES purify valgrind boundscheck drmemory
+ NAMES purify valgrind boundscheck drmemory cuda-memcheck compute-sanitizer
PATHS
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Rational Software\\Purify\\Setup;InstallFolder]"
DOC "Path to the memory checking command, used for memory error detection."
diff --git a/Modules/DartConfiguration.tcl.in b/Modules/DartConfiguration.tcl.in
index 086ba07..d318c26 100644
--- a/Modules/DartConfiguration.tcl.in
+++ b/Modules/DartConfiguration.tcl.in
@@ -71,6 +71,8 @@ ValgrindCommand: @VALGRIND_COMMAND@
ValgrindCommandOptions: @VALGRIND_COMMAND_OPTIONS@
DrMemoryCommand: @DRMEMORY_COMMAND@
DrMemoryCommandOptions: @DRMEMORY_COMMAND_OPTIONS@
+CudaMemcheckCommand: @CUDA_MEMCHECK_COMMAND@
+CudaMemcheckCommandOptions: @CUDA_MEMCHECK_COMMAND_OPTIONS@
MemoryCheckType: @MEMORYCHECK_TYPE@
MemoryCheckSanitizerOptions: @MEMORYCHECK_SANITIZER_OPTIONS@
MemoryCheckCommand: @MEMORYCHECK_COMMAND@