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>
23 строки
752 B
CMake
23 строки
752 B
CMake
#
|
|
#
|
|
#
|
|
cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
|
|
|
|
project(rocprofiler-samples LANGUAGES C CXX)
|
|
|
|
add_library(rocprofiler-samples-build-flags INTERFACE)
|
|
add_library(rocprofiler::samples-build-flags ALIAS rocprofiler-samples-build-flags)
|
|
target_compile_options(rocprofiler-samples-build-flags INTERFACE -W -Wall -Wextra
|
|
-Wshadow)
|
|
|
|
if(ROCPROFILER_BUILD_CI OR ROCPROFILER_BUILD_WERROR)
|
|
target_compile_options(rocprofiler-samples-build-flags INTERFACE -Werror)
|
|
endif()
|
|
|
|
# add_subdirectory(api_tracing)
|
|
add_subdirectory(pc_sampling)
|
|
add_subdirectory(api_callback_tracing)
|
|
add_subdirectory(api_buffered_tracing)
|
|
add_subdirectory(counter_collection)
|
|
add_subdirectory(intercept_table)
|