Code Coverage (#82)
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
[ROCm/rocshmem commit: 474112d03c]
Tá an tiomantas seo le fáil i:
@@ -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
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir