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: Initial Support for Trace and Profile on VE2 #8670

Closed
wants to merge 8 commits into from

Conversation

parthash0804
Copy link
Collaborator

@parthash0804 parthash0804 commented Dec 20, 2024

Problem solved by the commit

Added support for Trace and profile plugins for VE2 device.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

NA

How problem was solved, alternative solutions (if any) and why they were rejected

Added a new CMAKE flag XDP_VE2_BUILD_CMAKE based on which the VE2 plugins will be built. The flag will be set from VE2 directory CMake file. Need to create a PR on VE2 repo to set this flag.

Risks (if any) associated the changes in the commit

No risk as the plugins are build only with the CMake flag.

What has been tested and how, request additional testing if necessary

Tested trace and profile for VE2 design using QEMU+AIESIM flow.

Documentation impact (if any)

NA

Signed-off-by: parthash0804 <[email protected]>
Signed-off-by: parthash0804 <[email protected]>
Signed-off-by: parthash0804 <[email protected]>
Signed-off-by: parthash0804 <[email protected]>
Signed-off-by: parthash0804 <[email protected]>
Signed-off-by: parthash0804 <[email protected]>
Copy link
Collaborator

@IshitaGhosh IshitaGhosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please confirm on the use of macro checks in VE2 flow. Update the copyright messages.

@@ -0,0 +1,36 @@
/**
* Copyright (C) 2020 Xilinx, Inc
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update Copyright messages in all of the new/updated files

* under the License.
*/

#ifndef XDP_PROFILE_AIE_TRACE_LOGGER_H
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"XDP_PROFILE_AIE_TRACE_LOGGER_H" macro is already used in xdp/profile/device/aie_trace/aie_trace_logger.h . Although these two files are not expected to be compiled in a single flow, it is better to use unique name for the macro guard to avoid unexpected behavior, if there is a change in flow in future.
Please rename the macro guard to XDP_PROFILE_AIE_TRACE_VE2_LOGGER_H

* XRT_X86_BUILD is set only for x86 builds
* Only compile this on edge+versal build
*/
#if defined (XRT_ENABLE_AIE) && ! defined (XRT_X86_BUILD) && ! defined (XDP_CLIENT_BUILD)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these macro guards required for VE2 flow? The current cpp file is compiled only under XDP_VE2_BUILD_CMAKE. Can XRT_X86_BUILD, XDP_CLIENT_BUILD be ever set for VE2? Also, can AIE be disabled for VE2?

* XRT_X86_BUILD is set only for x86 builds
* Only compile this on edge+versal build
*/
#if defined (XRT_ENABLE_AIE) && ! defined (XRT_X86_BUILD)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these macro checks required for VE2?


#include "xdp/profile/device/tracedefs.h"

#if defined (XRT_ENABLE_AIE) && ! defined (XRT_X86_BUILD)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

@@ -7,7 +7,9 @@
# on both Edge and x86 platforms that support AIE.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update comment to include VE2 and also Client.

@IshitaGhosh
Copy link
Collaborator

@chvamshi-xilinx As Jason is OOO, please review this PR.

@@ -7,7 +7,11 @@
# Edge-Versal systems, but not Edge-aarch64. It also has a dependency
# on the hardware shim
# ====================================================================
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update comment to include VE2 and also Client.

@IshitaGhosh
Copy link
Collaborator

@parthash0804 Please use VE2 in your PR and branch.

@parthash0804 parthash0804 changed the title XDP: Initial Support for Trace and Profile on Telluride(VE2) XDP: Initial Support for Trace and Profile on VE2 Dec 23, 2024
@parthash0804
Copy link
Collaborator Author

parthash0804 commented Dec 23, 2024

@jvillarre / @IshitaGhosh / @pgschuey I have renamed my branch name and pushed the changes but the PR doesn't points to the updated branch. So I am creating a new PR and closing this PR.
New PR Link: #8672

cc: @chvamshi-xilinx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants