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
78 lines
2.7 KiB
CMake
78 lines
2.7 KiB
CMake
# Copyright (c) Advanced Micro Devices, Inc.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# ------------------------------------------------------------------------------#
|
|
#
|
|
# rocprofiler-systems-instrument target (formerly rocprofiler-systems-exe target prior to 1.8.1)
|
|
#
|
|
# ------------------------------------------------------------------------------#
|
|
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)
|
|
|
|
add_executable(rocprofiler-systems-instrument)
|
|
|
|
target_sources(
|
|
rocprofiler-systems-instrument
|
|
PRIVATE
|
|
${CMAKE_CURRENT_LIST_DIR}/details.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/function_signature.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/function_signature.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/fwd.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/info.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/internal_libs.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/internal_libs.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/log.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/log.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/module_function.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/module_function.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/rocprof-sys-instrument.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/rocprof-sys-instrument.hpp
|
|
)
|
|
|
|
target_link_libraries(
|
|
rocprofiler-systems-instrument
|
|
PRIVATE
|
|
rocprofiler-systems::rocprofiler-systems-headers
|
|
rocprofiler-systems::rocprofiler-systems-dyninst
|
|
rocprofiler-systems::rocprofiler-systems-compile-options
|
|
rocprofiler-systems::rocprofiler-systems-compile-definitions
|
|
rocprofiler-systems::rocprofiler-systems-sanitizer
|
|
rocprofiler-systems::rocprofiler-systems-common-library
|
|
timemory::timemory-headers
|
|
timemory::timemory-extensions
|
|
timemory::timemory-core
|
|
)
|
|
|
|
add_target_flag_if_avail(rocprofiler-systems-instrument "-Wno-deprecated-declarations")
|
|
|
|
set_target_properties(
|
|
rocprofiler-systems-instrument
|
|
PROPERTIES
|
|
BUILD_RPATH "\$ORIGIN:\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
|
|
INSTALL_RPATH "${ROCPROFSYS_EXE_INSTALL_RPATH}"
|
|
INSTALL_RPATH_USE_LINK_PATH ON
|
|
OUTPUT_NAME ${BINARY_NAME_PREFIX}-instrument
|
|
)
|
|
|
|
if(ROCPROFSYS_BUILD_DYNINST)
|
|
target_compile_definitions(
|
|
rocprofiler-systems-instrument
|
|
PRIVATE ROCPROFSYS_BUILD_DYNINST=1
|
|
)
|
|
endif()
|
|
|
|
add_target_flag_if_avail(rocprofiler-systems-instrument "-Wno-deprecated-declarations")
|
|
|
|
rocprofiler_systems_strip_target(rocprofiler-systems-instrument)
|
|
|
|
if(CMAKE_BUILD_TYPE MATCHES "^(DEBUG|Debug)")
|
|
string(REPLACE " " ";" _FLAGS "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
|
|
target_compile_options(rocprofiler-systems-instrument PRIVATE ${_FLAGS})
|
|
endif()
|
|
|
|
install(
|
|
TARGETS rocprofiler-systems-instrument
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
OPTIONAL
|
|
)
|