Clean up and add comments
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: Id30c0ccb68918e109533593df7c360837bdfa002
[ROCm/amdsmi commit: 4e8ed1f3e3]
이 커밋은 다음에 포함됨:
1 부모
9c5609410e
커밋
dcb8ba2215
2 파일이 변경됨
+1
-2
검색과 일치하는 파일 없음
@@ -1027,6 +1027,7 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
metric_parser.add_argument('-T', '--throttle', dest='throttle', action='store_true', required=False, help=argparse.SUPPRESS)
|
||||
|
||||
# Options to only display to Hypervisors
|
||||
# Need to resolve the -G for gaurd, but technically should never interset since it's VF only
|
||||
if self.helpers.is_hypervisor():
|
||||
metric_parser.add_argument('-s', '--schedule', action='store_true', required=False, help=schedule_help)
|
||||
metric_parser.add_argument('-G', '--guard', action='store_true', required=False, help=guard_help)
|
||||
|
||||
@@ -113,7 +113,6 @@ amdsmi_status_t AMDSmiDrm::init() {
|
||||
amd::smi::RocmSMI& smi = amd::smi::RocmSMI::getInstance();
|
||||
auto devices = smi.devices();
|
||||
|
||||
bool has_valid_fds = false;
|
||||
for (uint32_t i=0; i < devices.size(); i++) {
|
||||
auto rocm_smi_device = devices[i];
|
||||
drmDevicePtr device;
|
||||
@@ -139,7 +138,6 @@ amdsmi_status_t AMDSmiDrm::init() {
|
||||
drm_free_device(&device);
|
||||
}
|
||||
drm_free_version(version);
|
||||
has_valid_fds = true;
|
||||
}
|
||||
|
||||
uint64_t bdf_rocm = 0;
|
||||
|
||||
새 이슈에서 참조
사용자 차단