[SWDEV-482949] Add CPU model name querying support (#33)
- Add support to check CPU vendor info which will be called by RDC to discovery CPU information - Move esmi headers declaration to impl/amd_smi_common.h - remove duplicated amdsmi_cpu_util_t --------- Signed-off-by: Perry Yuan <perry.yuan@amd.com> Signed-off-by: Deepak Mewar <deepak.mewar@amd.com> Signed-off-by: Maisam Arif <Maisam.Arif@amd.com> Co-authored-by: Deepak Mewar <deepak.mewar@amd.com>
Este commit está contenido en:
@@ -5127,6 +5127,26 @@ except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
### amdsmi_get_cpu_model_name
|
||||
|
||||
Description: Get cpu model name.
|
||||
|
||||
Output: cpu model name
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_get_cpu_model_name` function:
|
||||
|
||||
* `AmdSmiLibraryException`
|
||||
|
||||
Example:
|
||||
|
||||
```python
|
||||
try:
|
||||
cpu_model_name = amdsmi_get_cpu_model_name()
|
||||
print(cpu_model_name)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
## No amdsmi_init APIs
|
||||
|
||||
### amdsmi_get_lib_version
|
||||
|
||||
Referencia en una nueva incidencia
Block a user