083035dd8b
* User API + reorganized lib folders
- omnitrace_user_start_trace
- omnitrace_user_stop_trace
- omnitrace_user_start_thread_trace
- omnitrace_user_stop_thread_trace
- omnitrace_user_push_region
- omnitrace_user_pop_region
* New OpenMP examples/tests
* Fix to KokkosP
* OMPT support
- fixed omnitrace instrumenting reporting
- common invoke improvements
- component::user_region
* exclude kmp_threadprivate_
* Separate omnitrace into multiple files
* PTL and timemory submodule updates
* Active guards + USE_OMPT guards in omnitrace-dl
* Tweak transpose default iterations
* omnitrace-precommit build target
* Omnitrace exe restructuring pt 2
- Never instrument functions with less than 4 instructions
- Never instrument ompt_start_tool or nanosleep
- module_function serializes heuristics
- removed hash stuff from omnitrace
- removed instr_procedures lambda
- WAITPID_DEBUG_MESSAGE
* set_state, "_hidden" fix, CI exceptions, backtrace fix
- set_state function
- fixed "_hidden" from appearing in print macros using __FUNCTION__
- OMNITRACE_CI_THROW
- more CI checks in library
- fixed backtrace init value sample issue being ignored
* Tweaks to OMPT tests
* cmake-formatting
* Removed debug output from backtrace processing
* Fix warnings and verbosity
* omnitrace-dl fix for libomp
* omnitrace-avail fixes
- remove second omnitrace_init_library call
- fix -r option not working
* Additional testing
- source/bin/tests
- tests for omnitrace-exe
- tests for omnitrace-avail
* cmake-format
* Reduce runtime of openmp-lu
* Update openmp-lu and tests timeout
* openmp-lu and CI tweaks
- decrease iterations
- OMP_NUM_THREADS=2
- install clang and libomp-dev in linux-ci
- fix data-files in linux-ci
[ROCm/rocprofiler-systems commit: d80752bc69]
62 γραμμές
2.1 KiB
CMake
62 γραμμές
2.1 KiB
CMake
# ------------------------------------------------------------------------------#
|
|
#
|
|
# omnitrace user library
|
|
#
|
|
# ------------------------------------------------------------------------------#
|
|
|
|
set(CMAKE_BUILD_TYPE "Release")
|
|
set(CMAKE_SKIP_RPATH OFF)
|
|
set(BUILD_RPATH_USE_ORIGIN ON)
|
|
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
|
|
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
|
|
|
|
add_library(omnitrace-user-library SHARED)
|
|
add_library(omnitrace::omnitrace-user-library ALIAS omnitrace-user-library)
|
|
|
|
target_sources(
|
|
omnitrace-user-library PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/user.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/omnitrace/user.h)
|
|
target_include_directories(
|
|
omnitrace-user-library PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
|
|
|
check_cxx_compiler_flag("-fno-exceptions" omnitrace_user_library_fno_exceptions)
|
|
check_cxx_compiler_flag("-ftls-model=local-dynamic"
|
|
omnitrace_user_library_ftls_module_local_dynamic)
|
|
|
|
if(OMNITRACE_BUILD_DEVELOPER)
|
|
if(omnitrace_user_library_fno_exceptions)
|
|
target_compile_options(omnitrace-user-library PRIVATE -fno-exceptions)
|
|
endif()
|
|
|
|
if(omnitrace_user_library_ftls_module_local_dynamic)
|
|
target_compile_options(omnitrace-user-library PRIVATE -ftls-model=local-dynamic)
|
|
endif()
|
|
endif()
|
|
|
|
set_target_properties(
|
|
omnitrace-user-library
|
|
PROPERTIES OUTPUT_NAME omnitrace-user
|
|
VERSION ${PROJECT_VERSION}
|
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|
|
POSITION_INDEPENDENT_CODE ON
|
|
BUILD_RPATH "\$ORIGIN"
|
|
INSTALL_RPATH "\$ORIGIN")
|
|
|
|
install(
|
|
TARGETS omnitrace-user-library
|
|
EXPORT omnitrace-user-library-targets
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
OPTIONAL)
|
|
|
|
install(
|
|
FILES ${CMAKE_CURRENT_SOURCE_DIR}/omnitrace/user.h
|
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/omnitrace
|
|
OPTIONAL)
|
|
|
|
install(
|
|
EXPORT omnitrace-user-library-targets
|
|
FILE omnitrace-user-library-targets.cmake
|
|
NAMESPACE omnitrace::
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake/omnitrace)
|