amdsmi: Adding Support to get hsmp Driver version

* amdsmi: Adding Support to get hsmp Driver version

Adding Support to fetch hsmp driver version from ESmi Interfaces.
Adding Support to fetch memory bandwidth per socket.

Signed-off-by: muthusamy <muthusamy.ramalingam@amd.com>
Dieser Commit ist enthalten in:
Ramalingam, Muthusamy
2025-01-30 01:15:02 +05:30
committet von GitHub
Ursprung 21841f44a5
Commit ced110dbb6
7 geänderte Dateien mit 246 neuen und 49 gelöschten Zeilen
+46
Datei anzeigen
@@ -4010,6 +4010,52 @@ except AmdSmiException as e:
print(e)
```
### amdsmi_get_threads_per_core
Description: Get number of threads per core.
Output: cpu family
Exceptions that can be thrown by `amdsmi_get_cpu_family` function:
* `AmdSmiLibraryException`
Example:
```python
try:
threads_per_core = amdsmi_get_threads_per_core()
print(threads_per_core)
except AmdSmiException as e:
print(e)
```
### amdsmi_get_cpu_hsmp_driver_version
Description: Get the HSMP Driver version.
Output: amdsmi HSMP Driver version
Exceptions that can be thrown by `amdsmi_get_cpu_hsmp_driver_version` function:
* `AmdSmiLibraryException`
Example:
```python
try:
processor_handles = amdsmi_get_cpusocket_handles()
if len(processor_handles) == 0:
print("No CPU sockets on machine")
else:
for processor in processor_handles:
version = amdsmi_get_cpu_hsmp_driver_version(processor)
print(version['major'])
print(version['minor'])
except AmdSmiException as e:
print(e)
```
### amdsmi_get_cpu_smu_fw_version
Description: Get the SMU Firmware version.