GOTCHA + Kokkos + tasking + more (#47)

* GOTCHA + Kokkos + tasking + more

- update gotcha with fix for dlsym(RTLD_NEXT, ...)
- support for standalone KOKKOS_PROFILE_LIBRARY
- remove extra flags for omnitrace-user
- roctracer and critical_trace namespaces in tasking
- generic tasking functions, e.g. join(), shutdown(), etc.
- omnitrace_init_tooling_hidden in api.hpp
- ompt.cpp uses OMNITRACE_USE_OMPT
- kokkosp uses user_region instead of omnitrace component
- re-enable recycling thread ids
- more generic _{push,pop}_perfetto functors
- fix for thread_data::instance(construct_on_init, ...)
- fix for omnitrace-headers interface target
- omnitrace_watch_for_change
This commit is contained in:
Jonathan R. Madsen
2022-04-26 22:08:51 -05:00
committed by GitHub
parent 791375bb24
commit 29220cba58
23 changed files with 337 additions and 174 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ endif()
string(REPLACE ";" ", " _DEBIAN_PACKAGE_DEPENDS "${_DEBIAN_PACKAGE_DEPENDS}")
set(CPACK_DEBIAN_PACKAGE_DEPENDS
"${_DEBIAN_PACKAGE_DEPENDS}"
CACHE STRING "Debian package dependencies")
CACHE STRING "Debian package dependencies" FORCE)
omnitrace_add_feature(CPACK_DEBIAN_PACKAGE_DEPENDS "Debian package dependencies")
set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
+19
View File
@@ -400,6 +400,24 @@ function(OMNITRACE_ADD_OPTION _NAME _MESSAGE _DEFAULT)
endif()
endfunction()
# ----------------------------------------------------------------------------------------#
# function omnitrace_report_feature_changes() :: print changes in features
#
function(OMNITRACE_REPORT_FEATURE_CHANGES)
get_property(_features GLOBAL PROPERTY ${PROJECT_NAME}_FEATURES)
if(NOT "${_features}" STREQUAL "")
list(REMOVE_DUPLICATES _features)
list(SORT _features)
endif()
foreach(_feature ${_features})
if("${ARGN}" STREQUAL "")
omnitrace_watch_for_change(${_feature})
elseif("${_feature}" IN_LIST ARGN)
omnitrace_watch_for_change(${_feature})
endif()
endforeach()
endfunction()
# ----------------------------------------------------------------------------------------#
# function print_enabled_features() Print enabled features plus their docstrings.
#
@@ -481,6 +499,7 @@ endfunction()
# function print_features() Print all features plus their docstrings.
#
function(OMNITRACE_PRINT_FEATURES)
omnitrace_report_feature_changes()
omnitrace_print_enabled_features()
omnitrace_print_disabled_features()
endfunction()
+3 -2
View File
@@ -34,8 +34,9 @@ set(OMNITRACE_EXTENSION_LIBRARIES
omnitrace::omnitrace-mpi omnitrace::omnitrace-ptl omnitrace::omnitrace-ompt
omnitrace::omnitrace-papi)
target_include_directories(omnitrace-headers INTERFACE ${PROJECT_SOURCE_DIR}/include
${PROJECT_BINARY_DIR}/include)
target_include_directories(
omnitrace-headers INTERFACE ${PROJECT_SOURCE_DIR}/source/lib/omnitrace/include
${PROJECT_BINARY_DIR}/source/lib/omnitrace/include)
# include threading because of rooflines
target_link_libraries(omnitrace-headers INTERFACE omnitrace-threading)