feature(sysman): Add pciGetStats support in win

Related-To: NEO-10662

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
This commit is contained in:
shubham kumar
2024-05-09 07:15:57 +00:00
committed by Compute-Runtime-Automation
parent e35b951a00
commit 05406722b9
16 changed files with 80 additions and 15 deletions

View File

@@ -43,6 +43,9 @@ class SysmanProductHelper {
// Temperature
virtual ze_result_t getSensorTemperature(double *pTemperature, zes_temp_sensors_t type, WddmSysmanImp *pWddmSysmanImp) = 0;
// Pci
virtual ze_result_t getPciStats(zes_pci_stats_t *pStats, WddmSysmanImp *pWddmSysmanImp) = 0;
protected:
SysmanProductHelper() = default;
};

View File

@@ -27,6 +27,9 @@ class SysmanProductHelperHw : public SysmanProductHelper {
// Temperature
ze_result_t getSensorTemperature(double *pTemperature, zes_temp_sensors_t type, WddmSysmanImp *pWddmSysmanImp) override;
// Pci
ze_result_t getPciStats(zes_pci_stats_t *pStats, WddmSysmanImp *pWddmSysmanImp) override;
protected:
SysmanProductHelperHw() = default;
};

View File

@@ -51,5 +51,10 @@ ze_result_t SysmanProductHelperHw<gfxProduct>::getSensorTemperature(double *pTem
return status;
}
template <PRODUCT_FAMILY gfxProduct>
ze_result_t SysmanProductHelperHw<gfxProduct>::getPciStats(zes_pci_stats_t *pStats, WddmSysmanImp *pWddmSysmanImp) {
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
}
} // namespace Sysman
} // namespace L0