[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>
이 커밋은 다음에 포함됨:
Castillo, Juan 작성하고 GitHub가 2025-07-15 19:35:54 -05:00를 커밋함
1 부모 03414e20ee
커밋 3b1957e674
5 파일이 변경됨
+107

검색과 일치하는 파일 없음

+36
파일 보기
@@ -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.