Port rocm-smi function to amd-smi

Port most rocm-smi function to amd-smi and add unit tests.

Change-Id: I6387a4bdaf20ead2389c99bb01d438156ccd0747


[ROCm/amdsmi commit: f1d02aca79]
This commit is contained in:
Bill(Shuzhou) Liu
2022-08-31 15:21:33 -04:00
orang tua 236e4e2d3e
melakukan bfa976cf08
61 mengubah file dengan 6785 tambahan dan 161 penghapusan
@@ -76,7 +76,7 @@ class AMDSmiSystem {
amdsmi_device_handle* device_handle);
private:
AMDSmiSystem() : init_flag_(AMD_SMI_INIT_ALL_DEVICES) {}
AMDSmiSystem() : init_flag_(AMDSMI_INIT_ALL_DEVICES) {}
uint64_t init_flag_;
AMDSmiDrm drm_;
std::vector<AMDSmiSocket*> sockets_;