2024-05-29 06:40:26 -05:00
|
|
|
#
|
|
|
|
|
# PC Sampling
|
|
|
|
|
# - HSA support officially added in HSA-Runtime v1.14.0
|
|
|
|
|
#
|
2024-10-07 17:00:59 -03:00
|
|
|
add_subdirectory(parser)
|
|
|
|
|
|
2024-05-29 06:40:26 -05:00
|
|
|
if(hsa-runtime64_VERSION AND hsa-runtime64_VERSION VERSION_LESS 1.14.0)
|
|
|
|
|
return()
|
|
|
|
|
endif()
|
|
|
|
|
|
2024-05-24 09:49:44 -05:00
|
|
|
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)
|
|
|
|
|
|
2024-10-25 11:17:34 -05:00
|
|
|
target_sources(rocprofiler-sdk-object-library PRIVATE ${ROCPROFILER_PC_SAMPLING_SOURCES}
|
|
|
|
|
${ROCPROFILER_PC_SAMPLING_HEADERS})
|
2024-05-24 09:49:44 -05:00
|
|
|
|
|
|
|
|
add_subdirectory(ioctl)
|
|
|
|
|
|
|
|
|
|
if(ROCPROFILER_BUILD_TESTS)
|
|
|
|
|
add_subdirectory(tests)
|
|
|
|
|
endif()
|