-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XDP] AIE debug and status improvements in support of VE2 (#8757)
- Loading branch information
Showing
17 changed files
with
144 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 24 additions & 13 deletions
37
src/runtime_src/xdp/profile/plugin/aie_status/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
target_include_directories(xdp_aie_status_plugin PRIVATE ${CMAKE_SOURCE_DIR}/src) | ||
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() |
Oops, something went wrong.