90ff7188f8
- improved error handling in dyninst - improved error handling in omnitrace exe - new logging facility for omnitrace exe - improved backtraces - disable concurrent kernels in rocprofiler - updates `setup-env.sh` and modulefile - set `omnitrace_ROOT` - set `HSA_TOOLS_LIB` if roctracer or rocprofiler enabled - set `ROCP_TOOL_LIB` if rocprofiler enabled - closes #163 - No longer make setting `HSA_ENABLE_INTERRUPT=0` the default - this has performance implications - this was set to workaround a bug in ROCR which caused an ioctl call in ROCm to hang when interrupted. But it was only interrupted when realtime sampling was enabled since the CPU-clock doesn't increment when waiting - This bug should be fixed in ROCm 5.3 - omnitrace no longer activates a realtime sampler by default when sampling, thus this bug is no longer encountered unless the user explicitly triggers realtime sampling
57 lines
1.9 KiB
CMake
57 lines
1.9 KiB
CMake
# ------------------------------------------------------------------------------#
|
|
#
|
|
# omnitrace-exe target
|
|
#
|
|
# ------------------------------------------------------------------------------#
|
|
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)
|
|
|
|
add_executable(omnitrace-exe)
|
|
|
|
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}/log.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/module_function.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/omnitrace.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/fwd.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/function_signature.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/info.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/log.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/module_function.hpp)
|
|
|
|
target_link_libraries(
|
|
omnitrace-exe
|
|
PRIVATE omnitrace::omnitrace-headers
|
|
omnitrace::omnitrace-dyninst
|
|
omnitrace::omnitrace-compile-options
|
|
omnitrace::omnitrace-compile-definitions
|
|
omnitrace::omnitrace-sanitizer
|
|
timemory::timemory-headers
|
|
timemory::timemory-extensions)
|
|
|
|
set_target_properties(
|
|
omnitrace-exe
|
|
PROPERTIES OUTPUT_NAME omnitrace
|
|
BUILD_RPATH "\$ORIGIN:\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
|
|
INSTALL_RPATH "${OMNITRACE_EXE_INSTALL_RPATH}"
|
|
INSTALL_RPATH_USE_LINK_PATH ON)
|
|
|
|
if(OMNITRACE_BUILD_DYNINST)
|
|
target_compile_definitions(omnitrace-exe PRIVATE OMNITRACE_BUILD_DYNINST=1)
|
|
endif()
|
|
|
|
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)
|