ファイル
rocm-systems/source/lib/rocprofiler-sdk/pc_sampling/CMakeLists.txt
T
Jonathan R. Madsen 74facf87a6 CMake: Consistently name CMake Targets (#1082)
* Change all rocprofiler-X target names to rocprofiler-sdk-X

* Update rocprofiler-sdk-config.cmake

- fix install tree target names
- simplify logic for using find w/ components and find w/o components

* Update rocprofiler-sdk-roctx-config.cmake

- simplify logic for using find w/ components and find w/o components

* Update samples/intercept_table/CMakeLists.txt

- demonstrate/test use of `find_package(rocprofiler-sdk ... COMPONENTS ...)`
2024-10-25 11:17:34 -05:00

24 行
760 B
CMake

#
# PC Sampling
# - HSA support officially added in HSA-Runtime v1.14.0
#
add_subdirectory(parser)
if(hsa-runtime64_VERSION AND hsa-runtime64_VERSION VERSION_LESS 1.14.0)
return()
endif()
set(ROCPROFILER_PC_SAMPLING_SOURCES hsa_adapter.cpp utils.cpp service.cpp cid_manager.cpp
code_object.cpp)
set(ROCPROFILER_PC_SAMPLING_HEADERS hsa_adapter.hpp utils.hpp service.hpp types.hpp
cid_manager.hpp code_object.hpp)
target_sources(rocprofiler-sdk-object-library PRIVATE ${ROCPROFILER_PC_SAMPLING_SOURCES}
${ROCPROFILER_PC_SAMPLING_HEADERS})
add_subdirectory(ioctl)
if(ROCPROFILER_BUILD_TESTS)
add_subdirectory(tests)
endif()