From e894d752e6875296256c5f1fda047c4ba1fa4d2f Mon Sep 17 00:00:00 2001 From: Paul Schumacher Date: Thu, 23 Jan 2025 00:05:59 +0000 Subject: [PATCH] turned on status for VE2 Signed-off-by: Paul Schumacher --- .../xdp/profile/plugin/CMakeLists.txt | 3 +- .../profile/plugin/aie_status/CMakeLists.txt | 37 ++++++++++++------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/src/runtime_src/xdp/profile/plugin/CMakeLists.txt b/src/runtime_src/xdp/profile/plugin/CMakeLists.txt index 47b69ea2991..0d1a434790b 100644 --- a/src/runtime_src/xdp/profile/plugin/CMakeLists.txt +++ b/src/runtime_src/xdp/profile/plugin/CMakeLists.txt @@ -2,7 +2,8 @@ # Copyright (C) 2022-2025 Advanced Micro Devices, Inc. All rights reserved. # -if(XDP_VE2_BUILD_CMAKE STREQUAL "yes") +if (XDP_VE2_BUILD_CMAKE STREQUAL "yes") + add_subdirectory(aie_status) add_subdirectory(aie_profile) add_subdirectory(aie_trace) add_subdirectory(ml_timeline) diff --git a/src/runtime_src/xdp/profile/plugin/aie_status/CMakeLists.txt b/src/runtime_src/xdp/profile/plugin/aie_status/CMakeLists.txt index ee87a2737c8..fb542d19f60 100644 --- a/src/runtime_src/xdp/profile/plugin/aie_status/CMakeLists.txt +++ b/src/runtime_src/xdp/profile/plugin/aie_status/CMakeLists.txt @@ -1,14 +1,12 @@ # SPDX-License-Identifier: Apache-2.0 -# Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2022-2025 Advanced Micro Devices, Inc. All rights reserved. # # ==================================================================== -# This builds the AIE Status plugin. It is currently only built -# on Edge platforms that support AIE. +# This builds the AIE Status plugin. It is currently built on +# Edge and VE2 platforms that support AIE. # ==================================================================== -if (DEFINED XRT_AIE_BUILD AND ${XRT_NATIVE_BUILD} STREQUAL "no") - file(GLOB AIE_STATUS_PLUGIN_FILES "${PROFILE_DIR}/plugin/aie_status/*.h" "${PROFILE_DIR}/plugin/aie_status/*.cpp" @@ -16,15 +14,28 @@ file(GLOB AIE_STATUS_PLUGIN_FILES "${PROFILE_DIR}/writer/aie_status/*.cpp" ) -add_library(xdp_aie_status_plugin MODULE ${AIE_STATUS_PLUGIN_FILES}) -add_dependencies(xdp_aie_status_plugin xdp_core) -target_link_libraries(xdp_aie_status_plugin PRIVATE xdp_core xaiengine) -target_compile_definitions(xdp_aie_status_plugin PRIVATE FAL_LINUX="on") +if (XDP_VE2_BUILD_CMAKE STREQUAL "yes") + add_library(xdp_aie_status_plugin MODULE ${AIE_STATUS_PLUGIN_FILES}) + add_dependencies(xdp_aie_status_plugin xdp_core) + target_link_libraries(xdp_aie_status_plugin PRIVATE xdp_core xaiengine) + target_compile_definitions(xdp_aie_status_plugin PRIVATE XDP_VE2_BUILD=1 FAL_LINUX="on") -set_target_properties(xdp_aie_status_plugin PROPERTIES VERSION ${XRT_VERSION_STRING} SOVERSION ${XRT_SOVERSION}) + set_target_properties(xdp_aie_status_plugin PROPERTIES VERSION ${XRT_VERSION_STRING} SOVERSION ${XRT_SOVERSION}) -install (TARGETS xdp_aie_status_plugin - LIBRARY DESTINATION ${XDP_PLUGIN_INSTALL_DIR} COMPONENT ${XRT_COMPONENT} -) + install (TARGETS xdp_aie_status_plugin + LIBRARY DESTINATION ${XDP_PLUGIN_INSTALL_DIR} COMPONENT ${XRT_COMPONENT} + ) + +elseif (DEFINED XRT_AIE_BUILD AND ${XRT_NATIVE_BUILD} STREQUAL "no") + add_library(xdp_aie_status_plugin MODULE ${AIE_STATUS_PLUGIN_FILES}) + add_dependencies(xdp_aie_status_plugin xdp_core) + target_link_libraries(xdp_aie_status_plugin PRIVATE xdp_core xaiengine) + target_compile_definitions(xdp_aie_status_plugin PRIVATE FAL_LINUX="on") + + set_target_properties(xdp_aie_status_plugin PROPERTIES VERSION ${XRT_VERSION_STRING} SOVERSION ${XRT_SOVERSION}) + + install (TARGETS xdp_aie_status_plugin + LIBRARY DESTINATION ${XDP_PLUGIN_INSTALL_DIR} COMPONENT ${XRT_COMPONENT} + ) endif()