[SWDEV-550679] Fix amd-smi monitor AttributeError
Impacts only Guest systems
Fixes following error:
$ amd-smi monitor
AttributeError: 'Namespace' object has no attribute 'violation'
Change-Id: If501819be3f8e2d2dfd75775dc776873a92465a3
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
[ROCm/amdsmi commit: 5fe58a8e38]
Tento commit je obsažen v:
@@ -19,6 +19,19 @@ Full documentation for amd_smi_lib is available at [https://rocm.docs.amd.com/pr
|
||||
|
||||
### Resolved Issues
|
||||
|
||||
- Fixed `amd-smi monitor` errors on guest systems
|
||||
```shell
|
||||
$ amd-smi monitor
|
||||
AttributeError: 'Namespace' object has no attribute 'violation'
|
||||
```
|
||||
|
||||
Now properly shows:
|
||||
```shell
|
||||
$ amd-smi monitor
|
||||
GPU XCP POWER GPU_T MEM_T GFX_CLK GFX% MEM% ENC% DEC% VRAM_USAGE
|
||||
0 0 12 W 40 °C 44 °C 9 MHz 8 % 1 % N/A 0 % 0.2/ 25.4 GB
|
||||
```
|
||||
|
||||
### Upcoming Changes
|
||||
|
||||
- N/A
|
||||
@@ -625,7 +638,11 @@ $ amd-smi
|
||||
|
||||
### Known issues
|
||||
|
||||
- N/A
|
||||
- `amd-smi monitor` does not work on guest systems
|
||||
```shell
|
||||
$ amd-smi monitor
|
||||
AttributeError: 'Namespace' object has no attribute 'violation'
|
||||
```
|
||||
|
||||
## amd_smi_lib for ROCm 6.4.0
|
||||
|
||||
|
||||
@@ -5546,6 +5546,8 @@ class AMDSMICommands():
|
||||
if not self.helpers.is_virtual_os():
|
||||
if violation:
|
||||
args.violation = violation
|
||||
else:
|
||||
args.violation = False # Disable violation for virtual OS
|
||||
|
||||
# Handle No GPU passed
|
||||
if args.gpu == None:
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele