[SWDEV-531904] Added test_get_gpu_revision (#533)

* [SWDEV-531904] Added test_get_gpu_revision
New:
- amdsmi_get_gpu_revision() previously not implemented in amdsmi_interface.py
- test_get_gpu_revision() missing integration test.

Updated:
-changelog.md added new doc fields for ROCm 7.1
-amdsmi-py-api.md added field|description doc fields

Signed-off-by: Juan Castillo <juan.castillo@amd.com>
Tá an tiomantas seo le fáil i:
Castillo, Juan
2025-07-15 19:35:54 -05:00
tiomanta ag GitHub
tuismitheoir 03414e20ee
tiomantas 3b1957e674
D'athraigh 5 comhad le 107 breiseanna agus 0 scriosta
+36
Féach ar an gComhad
@@ -550,6 +550,42 @@ except AmdSmiException as e:
print(e)
```
### amdsmi_get_gpu_revision
Description: Returns the GPU revision for a given processor handle.
Input parameters:
* `processor_handle` device which to query
Output: string hex value
Field | Description
---|---
`revision` | 16 bit integer value returned as hex string.
Exceptions that can be thrown by `amdsmi_get_gpu_revision` function:
* `AmdSmiLibraryException` If the processor handle is invalid.
* `AmdSmiParameterException` If the underlying library call fails.
Example:
```python
try:
devices = amdsmi_get_processor_handles(handle)
if len(devices) == 0:
print("No GPUs on machine")
else:
for device in devices:
revision = amdsmi_get_gpu_revision(device)
print(revision)
except AmdSmiLibraryException as e:
print(e)
except AmdSmiParameterException as e:
print(e)
```
### amdsmi_get_gpu_cache_info
Description: Returns a list of dictionaries containing cache information for the given GPU.