Retrieve Sysman engine property onSubdevice/subdeviceId field

Change-Id: Ifc26cbe1d6398d0c08a0e52c39936c517efca43e
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
Jitendra Sharma 2020-09-17 19:08:46 +05:30 committed by sys_ocldev
parent 2a18177ecb
commit 13b8929832
2 changed files with 6 additions and 1 deletions

View File

@ -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();
}

View File

@ -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();