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

Added AIE Profiling on additional Windows Devices #7714

Merged
merged 56 commits into from
Sep 22, 2023

Conversation

nishraptor
Copy link
Collaborator

Problem solved by the commit

Added AIE Profiling support on IPU devices.

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

A new AIE Profile plugin is compiled only on windows devices. The plugin configure/poll calls are now within the xrt hardware context creation/destruction in order to ensure that the XRT kernels are valid and that the AIE is in a valid state for reading counters after the application has completed. AIE configuration occurs when the hardware context is created, and the counters are profiled once when the hardware context is being destroyed. The raw hw_context_impl void* is passed to the aie_profile callback, which then uses the new method defined in hw_context_int in order to construct a xrt::hw_context from the implementation shared pointer.

Risks (if any) associated the changes in the commit

Could have effects on V70/VCK5000 or VCK190 AIE profiling.

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

Built and verified on windows machines

Documentation impact (if any)

nishraptor and others added 30 commits June 21, 2023 15:59
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Signed-off-by: Nishant Mysore <[email protected]>
Copy link
Collaborator

@stsoe stsoe left a comment

Choose a reason for hiding this comment

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

Some comments stem from misunderstanding, but maybe that can be helped with some more direct inline code comments?

src/runtime_src/core/common/api/xrt_hw_context.cpp Outdated Show resolved Hide resolved
src/runtime_src/core/common/xdp/CMakeLists.txt Outdated Show resolved Hide resolved
src/runtime_src/core/common/api/hw_context_int.h Outdated Show resolved Hide resolved
src/runtime_src/core/common/xdp/profile.cpp Outdated Show resolved Hide resolved
src/runtime_src/core/common/xdp/profile.cpp Outdated Show resolved Hide resolved
src/runtime_src/core/common/xdp/profile.cpp Outdated Show resolved Hide resolved
src/runtime_src/core/common/xdp/profile.cpp Outdated Show resolved Hide resolved
src/runtime_src/core/common/xdp/profile.h Outdated Show resolved Hide resolved
Signed-off-by: Nishant Mysore <[email protected]>
@gbuildx
Copy link
Collaborator

gbuildx commented Sep 21, 2023

Build failed :(

@gbuildx
Copy link
Collaborator

gbuildx commented Sep 21, 2023

Build failed :(

@gbuildx
Copy link
Collaborator

gbuildx commented Sep 21, 2023

Build Passed!

src/runtime_src/core/common/CMakeLists.txt Outdated Show resolved Hide resolved
Removed empty line

Co-authored-by: Soren Soe <[email protected]>
@gbuildx
Copy link
Collaborator

gbuildx commented Sep 22, 2023

Build Passed!

@jvillarre jvillarre merged commit 0464b83 into Xilinx:master Sep 22, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants