-
Notifications
You must be signed in to change notification settings - Fork 484
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
xrt-smi rearchitecture Patch 4 #8714
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Akshay Tondak <[email protected]>
Can one of the admins verify this patch? |
Signed-off-by: Akshay Tondak <[email protected]>
Signed-off-by: Akshay Tondak <[email protected]>
Signed-off-by: Akshay Tondak <[email protected]>
Signed-off-by: Akshay Tondak <[email protected]>
Signed-off-by: Akshay Tondak <[email protected]>
Signed-off-by: Akshay Tondak <[email protected]>
Signed-off-by: Akshay Tondak <[email protected]>
src/runtime_src/core/common/smi.cpp
Outdated
#include <boost/property_tree/ptree.hpp> | ||
#include <boost/property_tree/json_parser.hpp> | ||
#include <vector> | ||
#include <tuple> | ||
#include <string> | ||
#include <boost/property_tree/ptree.hpp> | ||
#include <boost/property_tree/json_parser.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort in groups. Keep smi.h first, then boost includes and finally system headers
value_type(value_type), | ||
description_array(description_array) {} | ||
|
||
ptree to_ptree() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like it or not. The convention I prefer to keep under core/common is
return-type
function() [const]
{
}
src/runtime_src/core/common/smi.h
Outdated
// Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved. | ||
|
||
#pragma once | ||
#define XRT_CORE_COMMON_SOURCE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to smi.cpp
Signed-off-by: Akshay Tondak <[email protected]>
Problem solved by the commit
This PR does the following :
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
Problem was discovered when we wanted to scale to multiple different tests separately in each shim.
https://jira.xilinx.com/browse/CR-1226870
How problem was solved, alternative solutions (if any) and why they were rejected
Solved through addition of a new field.
Risks (if any) associated the changes in the commit
xrt-smi should be tested for alveo devices.
What has been tested and how, request additional testing if necessary
Tested with MCDM and XDNA drivers.
Documentation impact (if any)
None