[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>
This commit is contained in:
Yuan, Perry
2025-03-29 10:21:39 +08:00
committed by GitHub
parent 13c222a103
commit 68e44c7f66
10 changed files with 244 additions and 21 deletions
+7
View File
@@ -27,6 +27,13 @@
#include "rocm_smi/rocm_smi.h"
#include "amd_smi/amdsmi.h"
#ifdef ENABLE_ESMI_LIB
extern "C" {
#include <cstdint>
#include <e_smi/e_smi.h>
}
#endif
namespace amd {
namespace smi {
+2 -1
View File
@@ -61,7 +61,8 @@ class AMDSmiSystem {
amdsmi_status_t clean_up_drm() { return drm_.cleanup();}
amdsmi_status_t init_drm() { return drm_.init();}
amdsmi_status_t get_cpu_model_name(uint32_t socket_id, std::string *model_name);
private:
AMDSmiSystem() : init_flag_(AMDSMI_INIT_AMD_GPUS) {}