Skip to content

Commit

Permalink
test: Valgrind updates
Browse files Browse the repository at this point in the history
  • Loading branch information
atafra committed Nov 10, 2024
1 parent e8468cc commit 0555a4a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ def test():

print_test('oidnTest.valgrind')
supp_filename = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'valgrind.supp')
if cfg.device in {'default', 'cpu', 'sycl', 'hip'}:
test_cmd += ' "[minimal]"' # too slow otherwise
test_cmd += ' "[minimal]"' # too slow otherwise
test_cmd = f'valgrind --leak-check=full -s --error-exitcode=1 --suppressions={supp_filename} --gen-suppressions=all {test_cmd}'
run_test(test_cmd)
elif OS == 'macos':
Expand Down
17 changes: 17 additions & 0 deletions scripts/valgrind.supp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@
...
}

{
libamd_comgr_cond
Memcheck:Cond
...
obj:*libamd_comgr.so*
...
}

{
libamd_comgr_param
Memcheck:Param
write(buf)
...
obj:*libamd_comgr.so*
...
}

{
libhsa_leak
Memcheck:Leak
Expand Down

0 comments on commit 0555a4a

Please sign in to comment.