Skip to content

Commit

Permalink
Add exiting error code for compute-sanitizer (#553)
Browse files Browse the repository at this point in the history
add exiting error code for compute-sanitizer

Co-authored-by: Jian Sun <sunjian@ucar.edu>
  • Loading branch information
sjsprecious and sjsprecious committed Jun 5, 2024
1 parent 601a3fc commit 84f36e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/test_util.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if(MICM_ENABLE_MEMCHECK)
if(MICM_ENABLE_CUDA)
find_program(MEMORYCHECK_COMMAND "compute-sanitizer")
set(MEMORYCHECK_COMMAND_OPTIONS "--show-backtrace device --tool=memcheck --launch-timeout=0")
set(MEMORYCHECK_COMMAND_OPTIONS "--error-exitcode=1 --show-backtrace device --tool=memcheck --launch-timeout=0")
set(CUDA_MEMORY_CHECK TRUE)
else()
find_program(MEMORYCHECK_COMMAND "valgrind")
Expand Down

0 comments on commit 84f36e3

Please sign in to comment.