diff --git a/rocm_smi/src/rocm_smi_main.cc b/rocm_smi/src/rocm_smi_main.cc index 40541d9280..1d623cb7f7 100755 --- a/rocm_smi/src/rocm_smi_main.cc +++ b/rocm_smi/src/rocm_smi_main.cc @@ -470,15 +470,10 @@ 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 (!FileExists(vend_path.c_str())) { return false; } - if (!FileExists(vbios_v_path.c_str())) { - return false; - } - std::ifstream fs; fs.open(vend_path);