4f2dc896d3
* Update include/rocprofiler - intercept_table.h header - generic rocprofiler_runtime_library_t - rocprofiler_internal_thread_library_t is not typedef for rocprofiler_runtime_library_t - rocprofiler_at_runtime_api_registration * Update lib/rocprofiler - minor tweaks to context.cpp - check if none context early - disallow stop_context when finalizing - add intercept_table.hpp and intercept_table.cpp - implement rocprofiler_at_runtime_api_registration - implement notify_runtime_api_registration - update registration.cpp - invoke notify_runtime_api_registration - tweak to fini status when invoking client finalizer * Update lib/rocprofiler/tests - add tests for intercept table * Add samples/intercept_table - demonstrate how to install custom API function wrappers instead of relying on HSA callback tracing * Update lib/rocprofiler/tests/intercept_table.cpp - remove _SERVICE from ROCPROFILER_SERVICE_ * Update include/rocprofiler/intercept_table.h - Update doxygen comments * Update lib/rocprofiler/intercept_table.cpp - return error config locked if already initialized * Update lib/rocprofiler/intercept_table.cpp - remove unnecessary alias * Apply suggestions from code review Co-authored-by: Tony Tye <Tony.Tye@amd.com> * Update doxygen comments - clarify when rocprofiler_at_runtime_api_registration can be invoked * Use rocprofiler_runtime_library_t for intercept table and internal threading - remove rocprofiler_intercept_library_t alias to rocprofiler_runtime_library_t - remove rocprofiler_internal_thread_library_t alias to rocprofiler_runtime_library_t - move around documentation with regard to rocprofiler_runtime_library_t enumeration - added some extra doxygen documentation to internal threading functions --------- Co-authored-by: Tony Tye <Tony.Tye@amd.com>
42 строки
830 B
CMake
42 строки
830 B
CMake
#
|
|
#
|
|
# Installation of public headers
|
|
#
|
|
#
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/version.h.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.h @ONLY)
|
|
|
|
set(ROCPROFILER_HEADER_FILES
|
|
# core headers
|
|
rocprofiler.h
|
|
rocprofiler_plugin.h
|
|
# secondary headers
|
|
agent.h
|
|
agent_profile.h
|
|
buffer.h
|
|
buffer_tracing.h
|
|
callback_tracing.h
|
|
context.h
|
|
counters.h
|
|
defines.h
|
|
dispatch_profile.h
|
|
external_correlation.h
|
|
fwd.h
|
|
hip.h
|
|
hsa.h
|
|
intercept_table.h
|
|
internal_threading.h
|
|
marker.h
|
|
pc_sampling.h
|
|
profile_config.h
|
|
registration.h
|
|
spm.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
|
|
|
install(FILES ${ROCPROFILER_HEADER_FILES}
|
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/rocprofiler)
|
|
|
|
add_subdirectory(hip)
|
|
add_subdirectory(hsa)
|
|
add_subdirectory(marker)
|