0f8430700d
* Fix support for version in find_package(rocprofiler-register <version>)
* Update lib/rocprofiler-register/rocprofiler-register.cpp
- change rocprofiler library name to librocprofiler-sdk.so
- add helper function rocp_load_rocprofiler_lib for dlopen of rocprofiler library
- support ROCP_TOOL_LIBRARIES environment variable
- reworked rocprofiler_register_error_string
* Update tests/rocprofiler
- rename library to librocprofiler-sdk
- remove rocprofiler_configure within librocprofiler-sdk.so
* Add tests/generic-tool
- provides implementation of rocprofiler_configure
* Update tests/CMakeLists.txt
- use libgeneric-tool.so
- LD_PRELOAD libgeneric-tool.so instead of librocprofiler
- Add tests which use ROCP_TOOL_LIBRARIES
* Update tests/generic-tool/generic-tool.cpp
- include <cstdint>
[ROCm/rocprofiler-register commit: ab02cb6570]
12 línte
442 B
CMake
12 línte
442 B
CMake
#
|
|
# mock generic-tool library
|
|
#
|
|
add_library(generic-tool SHARED)
|
|
add_library(generic-tool::generic-tool ALIAS generic-tool)
|
|
target_sources(generic-tool PRIVATE generic-tool.cpp)
|
|
target_include_directories(
|
|
generic-tool PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
|
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>)
|
|
# target_link_libraries(generic-tool PRIVATE rocprofiler)
|
|
rocp_register_strip_target(generic-tool)
|