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
Šī revīzija ir iekļauta:
Jobbins
2025-05-16 09:09:17 -06:00
revīziju iesūtīja GitHub
vecāks f43e3cf4fa
revīzija 474112d03c
7 mainīti faili ar 90 papildinājumiem un 8 dzēšanām
+11 -8
Parādīt failu
@@ -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