amdsmi library updated for metric table structure
Change-Id: Ie8a9840a9020282599dd413e964d86bfb8850f6a
This commit is contained in:
committed by
Galantsev, Dmitrii
szülő
18d8087711
commit
a0c95e855b
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user