Add support to read gpu_metrics version 1.2

gpu_metrics version 1.2 provides atomic timestamp. Use this timestamp.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Change-Id: I7a1a675f53b93718f34b1f2979173e9064e0ef93
Этот коммит содержится в:
Harish Kasiviswanathan
2021-05-04 21:18:27 -04:00
родитель e83cf605c6
Коммит 6b10a7761b
2 изменённых файлов: 40 добавлений и 10 удалений
+1
Просмотреть файл
@@ -834,6 +834,7 @@ struct metrics_table_header_t {
// The content version increments when gpu_metrics is extended with new and/or
// existing field sizes are changed.
#define RSMI_GPU_METRICS_API_CONTENT_VER_1 1
#define RSMI_GPU_METRICS_API_CONTENT_VER_2 2
// This should match NUM_HBM_INSTANCES
#define RSMI_NUM_HBM_INSTANCES 4