GPUOP-880: SR-IOV GIM host-side metric coverage (Phase A 8.7 + Phase …#76
Open
bhatturu wants to merge 1 commit into
Open
GPUOP-880: SR-IOV GIM host-side metric coverage (Phase A 8.7 + Phase …#76bhatturu wants to merge 1 commit into
bhatturu wants to merge 1 commit into
Conversation
eb9df44 to
5266a98
Compare
spraveenio
reviewed
Jul 7, 2026
| std::unique_ptr<amdsmi_metric_t[]> *heap, | ||
| amdsmi_metric_t **out_buf, uint32_t *out_count) | ||
| { | ||
| amdsmi_status_t amdsmi_ret; |
Contributor
There was a problem hiding this comment.
follow ascending len declaration uint32_t count = 0; to the top
| amdsmi_metric_t buf_stack[kStackMax]; | ||
| std::unique_ptr<amdsmi_metric_t[]> buf_heap; | ||
| amdsmi_metric_t *buf = nullptr; | ||
| uint32_t count = 0; |
5266a98 to
bf8969a
Compare
rsrikanth86
reviewed
Jul 7, 2026
| amdsmi_gpu_metrics_t metrics_info = {}; | ||
| amdsmi_gpu_metrics_t cached_metrics = {}; | ||
| amdsmi_power_info_t power_info = {}; | ||
| amdsmi_node_handle node_handle = {}; |
Contributor
There was a problem hiding this comment.
Variables should be in increasing order of line width
a37eaa1 to
f1a906a
Compare
f1a906a to
e0e461f
Compare
rsrikanth86
reviewed
Jul 10, 2026
| amdsmi_power_info_t power_info = {}; | ||
| amdsmi_engine_usage_t usage_info = {}; | ||
| amdsmi_node_handle node_handle = {}; | ||
| amdsmi_npm_info_t npm_info = {}; |
Contributor
There was a problem hiding this comment.
variable ordering is incorrect
rsrikanth86
reviewed
Jul 10, 2026
| gpu_handle, amdsmi_ret); | ||
| return amdsmi_ret_to_sdk_ret(amdsmi_ret); | ||
| } | ||
| if (count > AGA_GIM_MAX_METRICS) { |
Contributor
There was a problem hiding this comment.
do we need this check again? Does the count get set when metrics list is not null?
rsrikanth86
reviewed
Jul 10, 2026
| idx = m.res_instance; | ||
|
|
||
| if (unlikely(debug)) { | ||
| AGA_TRACE_ERR("gim_metrics GPU {} name {} val {} flags {} inst {}", |
Contributor
There was a problem hiding this comment.
Why do we need an env variable? Can't we make it a VERBOSE log?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…B 9.0.0.K)
Motivation
Technical Details
Test Plan
Test Result
Submission Checklist