72d0a7d08a
* Code-coverage support
* Examples update
- code-coverage example
- tweak transpose and parallel-overhead
* Coverage output + testing
- config::get_setting value(...)
- REGULAR_EXPRESSION -> REGEX in cmake func args
- coverage.hpp header
- coverage JSON
- coverage tests
* cmake formatting
* Library instrumentation w/o main + more
- fixed library instrumentation w/o main
- use TIMEMORY_PROJECT_NAME in output messages
- removed '--driver' option from omnitrace exe
- support coverage in trace mode
- OMNITRACE_KOKKOS_KERNEL_LOGGER
- support multiple calls to omnitrace_set_env after init if already called
- support multiple calls to omnitrace_set_mpi after init if same args
- support multiple calls to omnitrace_init if same mode
- unique_ptr_t for thread_data which calls finalize when thread_data is destroyed
- tweaked openmp tests
- improved finalization
* Replace CI --output-on-failure with -V
* Fix to OMNITRACE_DL_INVOKE
* omnitrace-exe and testing updates
- omnitrace::omnitrace-timemory interface library
- support for configs in omnitrace exe
- print-{available,instrumented,...} opts no longer exit w/o --simulate
- all tests apply --print-instrumented functions
- tweaked coverage tests
- print-* options print instructions not address range
* Remove OMNITRACE_DEBUG_FINALIZE=ON from CI
* Python cmake tweaks
* Tweak test ordering
* Upload CI artifacts if fail or success
* CI Python tweaks
- Use OMNITRACE_PYTHON_PREFIX and OMNITRACE_PYTHON_ENVS
* CI ELFULTILS_DOWNLOAD_VERSION
* test tweaks
- labels and more coverage tests
* tweak to omnitrace --config handling
* Update module/function constraint handling + PP
- tweak pre-processor definition handling
- removed free-standing module_constraint
- remove free-standing routine_constraint
- remove module_name.find("omnitrace") module constraint
- fully handle the output path of omnitrace *-instr files
- get_use_code_coverage config option
- print-coverage option
- coverage_module_functions
* use github.job not github.name
* Re-enable HSA_ENABLE_INTERRUPT
- remove coverage address report
[ROCm/rocprofiler-systems commit: 791375bb24]
48 lines
1.7 KiB
CMake
48 lines
1.7 KiB
CMake
# ------------------------------------------------------------------------------#
|
|
#
|
|
# omnitrace-exe target
|
|
#
|
|
# ------------------------------------------------------------------------------#
|
|
|
|
add_executable(omnitrace-exe ${_EXCLUDE})
|
|
|
|
target_sources(
|
|
omnitrace-exe
|
|
PRIVATE ${CMAKE_CURRENT_LIST_DIR}/omnitrace.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/details.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/function_signature.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/module_function.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/omnitrace.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/info.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/fwd.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/function_signature.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/module_function.hpp)
|
|
|
|
target_link_libraries(
|
|
omnitrace-exe
|
|
PRIVATE omnitrace::omnitrace-headers
|
|
omnitrace::omnitrace-dyninst
|
|
omnitrace::omnitrace-timemory
|
|
omnitrace::omnitrace-compile-options
|
|
omnitrace::omnitrace-compile-definitions
|
|
$<IF:$<BOOL:${OMNITRACE_USE_SANITIZER}>,omnitrace::omnitrace-sanitizer,>)
|
|
|
|
set_target_properties(
|
|
omnitrace-exe
|
|
PROPERTIES OUTPUT_NAME omnitrace
|
|
BUILD_RPATH "\$ORIGIN:${PROJECT_BINARY_DIR}:${CMAKE_BINARY_DIR}"
|
|
INSTALL_RPATH_USE_LINK_PATH ON
|
|
INSTALL_RPATH "${OMNITRACE_EXE_INSTALL_RPATH}")
|
|
|
|
omnitrace_strip_target(omnitrace-exe)
|
|
|
|
if(CMAKE_BUILD_TYPE MATCHES "^(DEBUG|Debug)")
|
|
string(REPLACE " " ";" _FLAGS "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
|
|
target_compile_options(omnitrace-exe PRIVATE ${_FLAGS})
|
|
endif()
|
|
|
|
install(
|
|
TARGETS omnitrace-exe
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
OPTIONAL)
|