Describe the bug
After discussing with @mattldawson , we found that the compute-sanitizer could finish a memory check even if a memory leak is detected on the GPU. Currently the memory test will show pass as a result of running to the end but we want it to fail actually.
Solution
Add the --error-exitcode=1 option to compute-sanitizer, forcing it to quit with an error when detecting a memory leak.
Describe the bug After discussing with @mattldawson , we found that the
compute-sanitizer
could finish a memory check even if a memory leak is detected on the GPU. Currently the memory test will showpass
as a result of running to the end but we want it tofail
actually.Solution Add the
--error-exitcode=1
option tocompute-sanitizer
, forcing it to quit with an error when detecting a memory leak.