Fix packaging (#51)
* Fix packaging - Bump version to 0.3.0 - Set CMAKE_INSTALL_DEFAULT_COMPONENT at high level - Fix HOMEPAGE_URL - Update install components - Install tests directory - Create two separate packages: core and tests - Auto-generate deps based on shared libs (DEB and RPM) - Auto-generate list of shared libs provided by package (DEB and RPM) - cleanup cmake/rocprofiler_register_utilities.cmake * Enable sanitizer jobs * Update cmake/rocprofiler_register_memcheck.cmake - set env for LD_PRELOAD * Update tests for sanitizer jobs * Remove loading librocprofiler64.so - this library does not have rocprofiler_set_api_table symbol * Link to static fmt library
This commit is contained in:
committed by
GitHub
parent
8ac1d556ce
commit
e8aed4dbe4
@@ -9,5 +9,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
|
||||
set(ROCPROFILER_REGISTER_INCLUDE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/rocprofiler-register.h
|
||||
${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
||||
|
||||
install(FILES ${ROCPROFILER_REGISTER_INCLUDE_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/rocprofiler-register)
|
||||
install(
|
||||
FILES ${ROCPROFILER_REGISTER_INCLUDE_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/rocprofiler-register
|
||||
COMPONENT core)
|
||||
|
||||
@@ -20,7 +20,7 @@ target_include_directories(
|
||||
target_link_libraries(
|
||||
rocprofiler-register
|
||||
PUBLIC rocprofiler-register::headers
|
||||
PRIVATE fmt::fmt-header-only glog::glog rocprofiler-register::build-flags
|
||||
PRIVATE fmt::fmt glog::glog rocprofiler-register::build-flags
|
||||
rocprofiler-register::memcheck rocprofiler-register::stdcxxfs
|
||||
rocprofiler-register::dl)
|
||||
|
||||
|
||||
@@ -253,13 +253,9 @@ rocp_reg_scan_for_tools()
|
||||
std::tie(rocprofiler_lib_handle, rocprofiler_lib_config_fn) =
|
||||
rocp_load_rocprofiler_lib(_rocp_reg_lib);
|
||||
|
||||
if(!rocprofiler_lib_config_fn)
|
||||
std::tie(rocprofiler_lib_handle, rocprofiler_lib_config_fn) =
|
||||
rocp_load_rocprofiler_lib("librocprofiler64.so");
|
||||
|
||||
LOG_IF(FATAL, !rocprofiler_lib_config_fn)
|
||||
<< rocprofiler_lib_register_entrypoint << " not found. Tried to dlopen "
|
||||
<< _rocp_reg_lib << " and librocprofiler64.so";
|
||||
<< _rocp_reg_lib;
|
||||
}
|
||||
else if(_found_tool && rocprofiler_set_api_table)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user