fbf0b49e22
- move ROCPROFILER_SDK_HSA_PC_SAMPLING define from lib/rocprofiler-sdk/hsa/hsa.hpp to lib/rocprofiler-sdk/pc_sampling/defines.hpp - Update lib/rocprofiler-sdk/pc_sampling/CMakeLists.txt to return if HSA version is < 1.14.0 - update various includes for "lib/rocprofiler-sdk/pc_sampling/defines.hpp"
23 lines
751 B
CMake
23 lines
751 B
CMake
#
|
|
# PC Sampling
|
|
# - HSA support officially added in HSA-Runtime v1.14.0
|
|
#
|
|
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-object-library PRIVATE ${ROCPROFILER_PC_SAMPLING_SOURCES}
|
|
${ROCPROFILER_PC_SAMPLING_HEADERS})
|
|
|
|
add_subdirectory(parser)
|
|
add_subdirectory(ioctl)
|
|
|
|
if(ROCPROFILER_BUILD_TESTS)
|
|
add_subdirectory(tests)
|
|
endif()
|