change sensor_type in amdsmi_dev_get_temp_metric() to enum

The sensor_type in amdsmi_dev_get_temp_metric() will be changed to
amdsmi_temperature_type_t

Change-Id: I72a7f271b0a55a025acc2ca523062a3d51cc036d


[ROCm/amdsmi commit: 79bd9c1d5f]
This commit is contained in:
Bill(Shuzhou) Liu
2023-01-04 12:30:11 -06:00
parent 2d97dee0c2
commit f29da5cce9
8 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ int main() {
// Get temperature
int64_t val_i64 = 0;
ret = amdsmi_dev_get_temp_metric(device_handles[j], 0,
ret = amdsmi_dev_get_temp_metric(device_handles[j], TEMPERATURE_TYPE_EDGE,
AMDSMI_TEMP_CURRENT, &val_i64);
std::cout << "\t\tTemperature: " << val_i64/1000 << "C" << std::endl;
}