CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
63 lines
2.3 KiB
CMake
63 lines
2.3 KiB
CMake
#
|
|
# Tool library used by rocprofiler
|
|
#
|
|
|
|
rocprofiler_activate_clang_tidy()
|
|
|
|
set(TOOL_HEADERS att_no_intercept.hpp att_no_intercept_impl.hpp config.hpp
|
|
execution_profile.hpp graph_stack.hpp helper.hpp stream_stack.hpp)
|
|
|
|
set(TOOL_SOURCES att_no_intercept.cpp config.cpp graph_stack.cpp main.c tool.cpp
|
|
stream_stack.cpp)
|
|
|
|
if(NOT ROCPROFILER_DISABLE_ATT_QUICK_SCAN)
|
|
find_package(rocprof-trace-decoder REQUIRED)
|
|
list(APPEND TOOL_SOURCES att_no_intercept_quick_scan.cpp)
|
|
endif()
|
|
|
|
add_library(rocprofiler-sdk-tool SHARED)
|
|
target_sources(rocprofiler-sdk-tool PRIVATE ${TOOL_SOURCES} ${TOOL_HEADERS})
|
|
|
|
target_link_libraries(
|
|
rocprofiler-sdk-tool
|
|
PRIVATE rocprofiler-sdk::rocprofiler-sdk-shared-library
|
|
rocprofiler-sdk::rocprofiler-sdk-headers
|
|
rocprofiler-sdk::rocprofiler-sdk-build-flags
|
|
rocprofiler-sdk::rocprofiler-sdk-memcheck
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library
|
|
rocprofiler-sdk::rocprofiler-sdk-output-library
|
|
rocprofiler-sdk::rocprofiler-sdk-cereal
|
|
rocprofiler-sdk::rocprofiler-sdk-perfetto
|
|
rocprofiler-sdk::rocprofiler-sdk-otf2
|
|
rocprofiler-sdk::rocprofiler-sdk-dw
|
|
rocprofiler-sdk::rocprofiler-sdk-amd-comgr
|
|
rocprofiler-sdk::rocprofiler-sdk-att-parser
|
|
rocprofiler-sdk::rocprofiler-sdk-sqlite3)
|
|
|
|
if(NOT ROCPROFILER_DISABLE_ATT_QUICK_SCAN)
|
|
target_link_libraries(rocprofiler-sdk-tool
|
|
PRIVATE rocprof-trace-decoder::rocprof-trace-decoder)
|
|
target_compile_definitions(rocprofiler-sdk-tool
|
|
PRIVATE ROCPROFILER_ATT_QUICK_SCAN_ENABLED=1)
|
|
else()
|
|
target_compile_definitions(rocprofiler-sdk-tool
|
|
PRIVATE ROCPROFILER_ATT_QUICK_SCAN_ENABLED=0)
|
|
endif()
|
|
|
|
set_target_properties(
|
|
rocprofiler-sdk-tool
|
|
PROPERTIES LIBRARY_OUTPUT_DIRECTORY
|
|
${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/rocprofiler-sdk
|
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|
|
VERSION ${PROJECT_VERSION}
|
|
BUILD_RPATH "\$ORIGIN:\$ORIGIN/.."
|
|
INSTALL_RPATH "\$ORIGIN:\$ORIGIN/..")
|
|
|
|
install(
|
|
TARGETS rocprofiler-sdk-tool
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/rocprofiler-sdk
|
|
COMPONENT tools
|
|
EXPORT rocprofiler-sdk-tool-targets)
|
|
|
|
add_subdirectory(kokkosp)
|