Skip to content

feat(smi): expose HSMP socket accumulators (accumulation_counter, soc…#73

Open
bhatturu wants to merge 2 commits into
ROCm:mainfrom
bhatturu:feature/kube-21-hsmp
Open

feat(smi): expose HSMP socket accumulators (accumulation_counter, soc…#73
bhatturu wants to merge 2 commits into
ROCm:mainfrom
bhatturu:feature/kube-21-hsmp

Conversation

@bhatturu

Copy link
Copy Markdown
Contributor

…ket_gfx_busy_acc, dram_bandwidth_acc)

Add socket_gfx_busy_accumulated, dram_bandwidth_accumulated, and accumulation_counter to aga_gpu_stats_t, filled from the HSMP metrics table via smi_gpu_fill_hsmp_stats_ and mapped into GPUStats proto.

The HSMP table read uses ESMI-only APIs, so the fill body is guarded by ENABLE_ESMI_LIB and the gpuagent objects are compiled with -DENABLE_ESMI_LIB. amdsmi must be built with ENABLE_ESMI_LIB=ON for these symbols to resolve.

APU smi init falls back to GPU init so non-APU platforms build and run.

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

bhatturu added 2 commits June 17, 2026 15:38
…ket_gfx_busy_acc, dram_bandwidth_acc)

Add socket_gfx_busy_accumulated, dram_bandwidth_accumulated, and
accumulation_counter to aga_gpu_stats_t, filled from the HSMP metrics
table via smi_gpu_fill_hsmp_stats_ and mapped into GPUStats proto.

The HSMP table read uses ESMI-only APIs, so the fill body is guarded by
ENABLE_ESMI_LIB and the gpuagent objects are compiled with
-DENABLE_ESMI_LIB. amdsmi must be built with ENABLE_ESMI_LIB=ON for
these symbols to resolve.

APU smi init falls back to GPU init so non-APU platforms build and run.
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.

1 participant