Retrieve Sysman engine property onSubdevice/subdeviceId field
Change-Id: Ifc26cbe1d6398d0c08a0e52c39936c517efca43e Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
parent
2a18177ecb
commit
13b8929832
|
@ -60,7 +60,7 @@ ze_result_t LinuxEngineImp::getActivity(zes_engine_stats_t *pStats) {
|
|||
|
||||
ze_result_t LinuxEngineImp::getProperties(zes_engine_properties_t &properties) {
|
||||
properties.type = engineGroup;
|
||||
properties.onSubdevice = false;
|
||||
properties.onSubdevice = 0;
|
||||
properties.subdeviceId = 0;
|
||||
return ZE_RESULT_SUCCESS;
|
||||
}
|
||||
|
@ -73,6 +73,8 @@ void LinuxEngineImp::init() {
|
|||
|
||||
LinuxEngineImp::LinuxEngineImp(OsSysman *pOsSysman, zes_engine_group_t type, uint32_t engineInstance) : engineGroup(type), engineInstance(engineInstance) {
|
||||
LinuxSysmanImp *pLinuxSysmanImp = static_cast<LinuxSysmanImp *>(pOsSysman);
|
||||
pDrm = &pLinuxSysmanImp->getDrm();
|
||||
pDevice = pLinuxSysmanImp->getDeviceHandle();
|
||||
pPmuInterface = pLinuxSysmanImp->getPmuInterface();
|
||||
init();
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "sysman/engine/os_engine.h"
|
||||
namespace L0 {
|
||||
class PmuInterface;
|
||||
struct Device;
|
||||
class LinuxEngineImp : public OsEngine, NEO::NonCopyableOrMovableClass {
|
||||
public:
|
||||
ze_result_t getActivity(zes_engine_stats_t *pStats) override;
|
||||
|
@ -29,6 +30,8 @@ class LinuxEngineImp : public OsEngine, NEO::NonCopyableOrMovableClass {
|
|||
zes_engine_group_t engineGroup = ZES_ENGINE_GROUP_ALL;
|
||||
uint32_t engineInstance = 0;
|
||||
PmuInterface *pPmuInterface = nullptr;
|
||||
NEO::Drm *pDrm = nullptr;
|
||||
Device *pDevice = nullptr;
|
||||
|
||||
private:
|
||||
void init();
|
||||
|
|
Loading…
Reference in New Issue