amdsmi cannot read power cap more than 10 characters
Extend the default read array size. Change-Id: I2739981873cb3c360661e3ef5f6e70d4f36cb0e8
This commit is contained in:
committed by
Maisam Arif
parent
3660724a08
commit
69109de8d3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user