Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XDP] Turn on AIE Status feature for VE2 devices #8711

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/runtime_src/xdp/profile/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
37 changes: 24 additions & 13 deletions src/runtime_src/xdp/profile/plugin/aie_status/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,41 @@
# 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"
"${PROFILE_DIR}/writer/aie_status/*.h"
"${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()
Loading