Added amdsmi cpu family & cpu model
- Updated header and source files - Updated python interface - Generated python wrapper for updated header - Updated the CLI to have cpu family & cpu model as part of metric table Change-Id: Iea440251797270d5d29ffe883b0ad6db790be658
This commit is contained in:
1 parent
8adf3eba1b
commit
6f7273fda5
9 files changed
+132
-4
No files matched your search
@@ -6038,3 +6038,43 @@ try:
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
### amdsmi_get_cpu_family
|
||||
|
||||
Description: Get cpu family.
|
||||
|
||||
Output: cpu family
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_get_cpu_family` function:
|
||||
|
||||
* `AmdSmiLibraryException`
|
||||
|
||||
Example:
|
||||
|
||||
```python
|
||||
try:
|
||||
cpu_family = amdsmi_get_cpu_family()
|
||||
print(cpu_family)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
### amdsmi_get_cpu_model
|
||||
|
||||
Description: Get cpu model.
|
||||
|
||||
Output: cpu model
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_get_cpu_model` function:
|
||||
|
||||
* `AmdSmiLibraryException`
|
||||
|
||||
Example:
|
||||
|
||||
```python
|
||||
try:
|
||||
cpu_model = amdsmi_get_cpu_model()
|
||||
print(cpu_model)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
Reference in new issue
Block a user