If ENABLE_TESTING is ON, you can now use memory checking tools to run the test suite and check for memory leaks. By default CMake will try to find valgrind in your path and set some default options. To customize this behavior use the MEMORYCHECK_COMMAND and MEMORYCHECK_COMMAND_OPTIONS variables. To run tests with the memory checker, use the MemCheck action in ctest: Run entire test suite: ctest -T MemCheck Run single test: ctest -T MemCheck -R TESTNAME Run test in verbose mode: ctest -V -T MemCheck -R TESTNAME
75 lines
1.1 KiB
Plaintext
75 lines
1.1 KiB
Plaintext
{
|
|
OpenMP_cuda_init_part1
|
|
Memcheck:Leak
|
|
match-leak-kinds: reachable
|
|
fun:calloc
|
|
fun:_dlerror_run
|
|
fun:dlopen*
|
|
obj:*/lib*/libcuda.so.*
|
|
obj:*
|
|
...
|
|
fun:call_init.part.0
|
|
fun:_dl_init
|
|
obj:/usr/lib*/ld-2.*.so
|
|
}
|
|
{
|
|
OpenMP_init_part1
|
|
Memcheck:Leak
|
|
match-leak-kinds: reachable
|
|
fun:malloc
|
|
...
|
|
obj:/usr/lib*/libgomp.so.1*
|
|
fun:call_init.part.0
|
|
fun:_dl_init
|
|
}
|
|
{
|
|
OpenMP_init_part2
|
|
Memcheck:Leak
|
|
match-leak-kinds: reachable
|
|
fun:malloc
|
|
...
|
|
obj:/usr/lib*/libgomp.so.1*
|
|
fun:GOMP_parallel
|
|
...
|
|
fun:main
|
|
}
|
|
{
|
|
OpenMP_init_part3
|
|
Memcheck:Leak
|
|
match-leak-kinds: reachable
|
|
fun:malloc
|
|
...
|
|
obj:/usr/lib*/libgomp.so.1*
|
|
fun:omp_set_num_threads
|
|
...
|
|
fun:main
|
|
}
|
|
{
|
|
OpenMP_init_part4
|
|
Memcheck:Leak
|
|
match-leak-kinds: reachable
|
|
fun:malloc
|
|
...
|
|
fun:GOMP_parallel
|
|
...
|
|
}
|
|
{
|
|
OpenMP_init_part5
|
|
Memcheck:Leak
|
|
match-leak-kinds: reachable
|
|
fun:malloc
|
|
...
|
|
obj:/usr/lib*/libgomp.so.1*
|
|
fun:omp_set_num_threads
|
|
...
|
|
}
|
|
{
|
|
OpenMP_init_part6
|
|
Memcheck:Leak
|
|
match-leak-kinds: possible
|
|
fun:calloc
|
|
...
|
|
fun:GOMP_parallel
|
|
...
|
|
}
|