[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>

[ROCm/amdsmi commit: 68e44c7f66]
This commit is contained in:
Yuan, Perry
2025-03-29 10:21:39 +08:00
committed by GitHub
parent 952bff9126
commit b92ffd2bcf
10 changed files with 244 additions and 21 deletions
@@ -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