amdsmi cannot read power cap more than 10 characters

Extend the default read array size.

Change-Id: I2739981873cb3c360661e3ef5f6e70d4f36cb0e8


[ROCm/amdsmi commit: 69109de8d3]
Ta zmiana jest zawarta w:
Bill(Shuzhou) Liu authored and Maisam Arif committed 2024-09-24 14:31:40 -04:00
1 rodzic c8da426b98
złożenie c20427e1f0
Plik 1 zmieniony
+1 -1
+1 -1
Wyświetl plik
@@ -218,7 +218,7 @@ amdsmi_status_t smi_amdgpu_get_power_cap(amd::smi::AMDSmiGPUDevice* device, int
if (!device->check_if_drm_is_supported()) {
return AMDSMI_STATUS_NOT_SUPPORTED;
}
constexpr int DATA_SIZE = 10;
constexpr int DATA_SIZE = 16;
char val[DATA_SIZE];
std::string fullpath;
amdsmi_status_t ret = AMDSMI_STATUS_SUCCESS;