code coverage:  generate code coverage reports

* Add instrumentation flags to rocshmem target when adding -DBUILD_CODE_COVERAGE cmake flag
* Add helper script to build all subprojects and generate code coverage reports
* Update README with code coverage instructions
Αυτή η υποβολή περιλαμβάνεται σε:
Jobbins
2025-05-16 09:09:17 -06:00
υποβλήθηκε από GitHub
γονέας f43e3cf4fa
υποβολή 474112d03c
7 αρχεία άλλαξαν με 90 προσθήκες και 8 διαγραφές
+11 -8
Προβολή Αρχείου
@@ -42,15 +42,18 @@ target_sources(
ipc_policy.cpp
)
target_compile_options(
${PROJECT_NAME}
PUBLIC
-fgpu-rdc
# xnack allows address translation fault recovery
# required option for managed heap configs
# -mxnack
set(
ROCSHMEM_COMPILE_FLAGS
-fgpu-rdc
# xnack allows address translation fault recovery
# required option for managed heap configs
# -mxnack
)
if (BUILD_CODE_COVERAGE)
set(ROCSHMEM_COMPILE_FLAGS ${ROCSHMEM_COMPILE_FLAGS} -fprofile-instr-generate -fcoverage-mapping)
target_link_options(${PROJECT_NAME} PUBLIC -fprofile-instr-generate)
endif()
target_compile_options(${PROJECT_NAME} PUBLIC ${ROCSHMEM_COMPILE_FLAGS})
#target_link_options(
#${PROJECT_NAME}
#PUBLIC