Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect code coverage #24

Open
Luthaf opened this issue Apr 26, 2023 · 1 comment
Open

Collect code coverage #24

Luthaf opened this issue Apr 26, 2023 · 1 comment

Comments

@Luthaf
Copy link
Contributor

Luthaf commented Apr 26, 2023

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?

@nickjbrowning
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants