ccd154b74c
* Update source/lib/common
- CMakeLists.txt
- less verbose
- rocprofiler-common-library uses rocprofiler-headers target
- mpl.hpp
- metaprogramming header with type_list, size_of, index_of, and is_one_of
- record_header_buffer.{hpp,cpp}
- wrapper class around atomic_ring_buffer and vector of rocprofiler_record_header_t
- atomic_ring_buffer.{hpp,cpp}
- request function accepts wrap param when overwritting is not desirable
- can_clear member function
- clear member function for rewinding write pointer to start of buffer
- containers/CMakeLists.txt
- include record_header_buffer.{hpp,cpp} in build target
* Update source/lib/tests: Buffering tests
- Added buffering tests. See comments in code for description
* atomic_ring_buffer -> ring_buffer
- remove ring_buffer implementation
- rename atomic_ring_buffer to ring_buffer
* atomic_ring_buffer -> ring_buffer
- remove ring_buffer implementation
- rename atomic_ring_buffer to ring_buffer
* Update record_header_buffer
- lock, unlock, is_locked, clear, save, and load member functions
* Buffering tests
- add buffer test for save/load capability
* Update rocprofiler_memcheck.cmake
- fix erroneous spaces causing incorrect string evaluation
* Update ring_buffer
- fix exception message
* undef HIP_PROF_API
- make sure HIP_PROF_API is undefined before including hip_runtime.h
- avoid directly including hip/hip_runtime.h
* Update rocprofiler_config_interfaces
- remove stale preprocessor defines that are from old rocprofiler/roctracer
- HIP_PROF_HIP_API_STRING=1
- PROF_API_IMPL=1
* Update run-ci.py
- fix paths to suppression files
- improve printing logs to console in github actions
* Update buffering implementation
- remove support for using malloc instead of mmap in ring_buffer
- provide some info functions in record_header_buffer
- improve the testing of the save-load buffer test
* Update run-ci.py
- fix CTEST_CUSTOM_COVERAGE_EXCLUDE
* Update hip/api_args.h
- remove undef HIP_PROF_API
* Update buffering-save-load.cpp
- updated comments
* Update record_header_buffer
- default ctor
- allocate member function
- is_allocated member function
* Update buffering-save-load.cpp
- tweaked usage of record_header_buffer to delay allocation
[ROCm/rocprofiler-sdk commit: b12ef4a75e]
32 linhas
1.5 KiB
CMake
32 linhas
1.5 KiB
CMake
#
|
|
# Builds common utilities into a static library
|
|
#
|
|
set(common_sources config.cpp helper.cpp)
|
|
set(common_headers config.hpp defines.hpp environment.hpp join.hpp log.hpp helper.hpp
|
|
mpl.hpp)
|
|
|
|
add_library(rocprofiler-common-library STATIC)
|
|
add_library(rocprofiler::rocprofiler-common-library ALIAS rocprofiler-common-library)
|
|
|
|
add_subdirectory(container)
|
|
|
|
target_sources(rocprofiler-common-library PRIVATE ${common_sources} ${common_headers})
|
|
target_include_directories(rocprofiler-common-library
|
|
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/source>)
|
|
|
|
target_link_libraries(
|
|
rocprofiler-common-library
|
|
PUBLIC $<BUILD_INTERFACE:rocprofiler::rocprofiler-headers>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-build-flags>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-threading>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-memcheck>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-stdcxxfs>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-glog>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-fmt>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-dl>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-hip>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-amd-comgr>
|
|
$<BUILD_INTERFACE:rocprofiler::rocprofiler-hsa-runtime>)
|
|
set_target_properties(rocprofiler-common-library PROPERTIES OUTPUT_NAME
|
|
rocprofiler-common)
|