NCAR / micm

A model-independent chemistry module for atmosphere models
https://ncar.github.io/micm/
Apache License 2.0
6 stars 4 forks source link

Return nonzero error when detecting memory leak on the GPU #552

Closed sjsprecious closed 1 month ago

sjsprecious commented 1 month ago

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.