amdsmi library updated for metric table structure

Change-Id: Ie8a9840a9020282599dd413e964d86bfb8850f6a
This commit is contained in:
Deepak Mewar
2024-01-08 03:30:54 -05:00
committed by Galantsev, Dmitrii
szülő 18d8087711
commit a0c95e855b
2 fájl változott, egészen pontosan 4 új sor hozzáadva és 1 régi sor törölve
+1 -1
Fájl megtekintése
@@ -1506,7 +1506,7 @@ typedef struct {
/**
* @brief Metrics table (supported only with hsmp proto version 6).
*/
typedef struct {
typedef struct __attribute__((__packed__)){
uint32_t accumulation_counter;
/* TEMPERATURE */
+3
Fájl megtekintése
@@ -3653,6 +3653,9 @@ amdsmi_status_t amdsmi_get_metrics_table(amdsmi_processor_handle processor_handl
if (processor_handle == nullptr)
return AMDSMI_STATUS_INVAL;
if(sizeof(amdsmi_hsmp_metric_table_t) != sizeof(struct hsmp_metric_table))
return AMDSMI_STATUS_UNEXPECTED_SIZE;
amdsmi_status_t r = amdsmi_get_processor_info(processor_handle, SIZE, proc_id);
if (r != AMDSMI_STATUS_SUCCESS)
return r;