8be4ca1a04
- install rocprofiler library - define AMD_INTERNAL_BUILD when including hsa/hsa.h - install include/rocprofiler/registration.h header - fix samples/pc_sampling cmake via installed rocprofiler - fix samples/api_callback_tracing cmake via installed rocprofiler - fix samples/api_buffered_tracing cmake via installed rocprofiler - set cmake_minimum_required in samples/CMakeLists.txt - find dependent packages in rocprofiler-config.cmake.in - AMDDeviceLibs - amd_comgr - hsa-runtime64 - hip - export rocprofiler-hip and rocprofiler-hsa-runtime libraries - add Test Install Build step to CI workflow
41 řádky
808 B
CMake
41 řádky
808 B
CMake
#
|
|
#
|
|
# Installation of public headers
|
|
#
|
|
#
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/version.h.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.h @ONLY)
|
|
|
|
set(ROCPROFILER_HEADER_FILES
|
|
# core headers
|
|
rocprofiler.h
|
|
rocprofiler_plugin.h
|
|
# secondary headers
|
|
agent.h
|
|
agent_profile.h
|
|
buffer.h
|
|
buffer_tracing.h
|
|
callback_tracing.h
|
|
context.h
|
|
counters.h
|
|
defines.h
|
|
dispatch_profile.h
|
|
external_correlation.h
|
|
fwd.h
|
|
hip.h
|
|
hsa.h
|
|
internal_threading.h
|
|
marker.h
|
|
pc_sampling.h
|
|
profile_config.h
|
|
registration.h
|
|
spm.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
|
|
|
install(FILES ${ROCPROFILER_HEADER_FILES}
|
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/rocprofiler)
|
|
|
|
add_subdirectory(hip)
|
|
add_subdirectory(hsa)
|
|
add_subdirectory(marker)
|