Make vbios optional in amd-smi

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I61d54ea8a01112818df9f431f319533f1bc36f27


[ROCm/amdsmi commit: 261de2ceab]
This commit is contained in:
Maisam Arif
2023-07-24 16:11:19 -05:00
parent 473a370cd8
commit 6d0f19bbd3
+1 -5
View File
@@ -49,12 +49,8 @@ static const uint32_t kAmdGpuId = 0x1002;
static bool isAMDGPU(std::string dev_path) {
std::string vend_path = dev_path + "/device/vendor";
std::string vbios_v_path = dev_path + "/device/vbios_version";
if (!amd::smi::FileExists(vend_path.c_str())) {
return false;
}
if (!amd::smi::FileExists(vbios_v_path.c_str())) {
if (!amd::smi::FileExists(vend_path.c_str())) {
return false;
}