sphericart icon indicating copy to clipboard operation
sphericart copied to clipboard

Collect code coverage

Open Luthaf opened this issue 2 years ago • 2 comments

This will require a new CI job.

For C and C++ code coverage, we will need to build the code with the -coverage gcc/clang flag; then running the code (from Python or directly) and then collecting coverage with gcov/lcov.

For Python code coverage, we can use the coverage package.

I don't know how to do this for CUDA, @nickjbrowning is there a similar flag for nvcc?

Luthaf avatar Apr 26 '23 09:04 Luthaf

Code coverage on GPU code (device-side) is not possible as far as I'm aware. Only for the CPU (host) code is this possible.

See here

rubber-duck-debug avatar May 03 '23 06:05 rubber-duck-debug