Skip to content

Commit

Permalink
Merge amd-staging into amd-master 20230131
Browse files Browse the repository at this point in the history
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I9c65e1f119f64e2a990e5e05e253e124f8a03f46
  • Loading branch information
Hao Zhou authored and Hao Zhou committed Jan 31, 2023
2 parents e24a2f9 + 142dcfa commit c4fd53f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/rocm_smi_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -543,15 +543,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);

Expand Down

0 comments on commit c4fd53f

Please sign in to comment.