2
0

rocm_smi_lib: fix gpu_metrics_v1_3 support

Signed-off-by: Elena Sakhnovitch
Change-Id: Ia7a6b17eb0f317465613ba92ae7548a221c46ee3
Este cometimento está contido em:
Elena Sakhnovitch
2021-08-13 11:59:50 -04:00
ascendente fee82af1fe
cometimento 5e1bfcadd7
2 ficheiros modificados com 10 adições e 21 eliminações
-13
Ver ficheiro
@@ -901,19 +901,6 @@ typedef struct {
uint32_t gfx_activity_acc; // new in v1
uint32_t mem_actvity_acc; // new in v1
uint16_t temperature_hbm[RSMI_NUM_HBM_INSTANCES]; // new in v1
/* PMFW attached timestamp (10ns resolution) */
uint64_t firmware_timestamp; // added in v1_2
/* Voltage (mV) */
uint16_t voltage_soc; // added in v1_3
uint16_t voltage_gfx; // added in v1_3
uint16_t voltage_mem; // added in v1_3
uint16_t padding1;
/* Throttle status (ASIC independent) */
uint64_t indep_throttle_status; // added in v1_3
/// \endcond
} rsmi_gpu_metrics_t;
+10 -8
Ver ficheiro
@@ -123,16 +123,18 @@ typedef struct {
typedef struct {
rsmi_gpu_metrics_t base;
/* PMFW attached timestamp (10ns resolution) */
uint64_t firmware_timestamp;
/* PMFW attached timestamp (10ns resolution) */
uint64_t firmware_timestamp;
/* Voltage (mV) */
uint16_t voltage_soc;
uint16_t voltage_gfx;
uint16_t voltage_mem;
/* Voltage (mV) */
uint16_t voltage_soc;
uint16_t voltage_gfx;
uint16_t voltage_mem;
/* Throttle status (ASIC independent) */
uint64_t indep_throttle_status;
uint16_t padding1;
/* Throttle status (ASIC independent) */
uint64_t indep_throttle_status;
} rsmi_gpu_metrics_v_1_3;