Repository navigation
Instrument only host code in the coverage build #3193
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -346,9 +346,12 @@ foreach(_src_fn ${_dpnp_sources}) | |
| "${_clang_prefix}-fno-finite-math-only" | ||
| ) | ||
| if(DPNP_GENERATE_COVERAGE) | ||
| # host only, as PROFILE_FLAGS in the top-level CMakeLists.txt | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This conflicts with master now, here and in |
||
| list( | ||
| APPEND _combined_options_prop | ||
| -Xarch_host | ||
| -fprofile-instr-generate | ||
| -Xarch_host | ||
| -fcoverage-mapping | ||
| -fno-sycl-use-footer | ||
| ) | ||
|
|
@@ -413,7 +416,9 @@ foreach(python_module_name ${_py_trgts}) | |
| if(DPNP_TENSOR_GENERATE_COVERAGE_FOR_PYBIND11_EXTENSIONS) | ||
| target_compile_options( | ||
| ${python_module_name} | ||
| PRIVATE -fprofile-instr-generate -fcoverage-mapping | ||
| PRIVATE | ||
| "SHELL:-Xarch_host -fprofile-instr-generate" | ||
| "SHELL:-Xarch_host -fcoverage-mapping" | ||
| ) | ||
| endif() | ||
| target_link_options( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The counts can reach a profile with this toolchain (see the review), so the reason could name what drops them in dpnp: