Don't use hwmon# as indicator of gpu
Previously, during the rsmi_init discovery process, the existence of an hwmon# directory was used to distinguish between gpus nodes and non-gpu nodes. This isn't reliable in some scenarios. Instead, the existence of the vbios_version file is used as an indicator that the node is indeed a gpu. Change-Id: Icfbe5c42ed0970077b05f25c3d209308a31bec85
This commit is contained in:
@@ -709,7 +709,7 @@ int Device::readDevInfoBinary(DevInfoTypes type, std::size_t b_size,
|
||||
|
||||
size_t num = fread(p_binary_data, b_size, 1, ptr);
|
||||
fclose(ptr);
|
||||
if((num*b_size) != b_size){
|
||||
if ((num*b_size) != b_size) {
|
||||
return ENOENT;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user