Create Sysman Frequency API handles based on available subdevice/device

Change-Id: I2049515150004551c3f61647d20f1df7b375f587
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
Jitendra Sharma
2020-09-10 10:54:55 +05:30
committed by sys_ocldev
parent d0a6b8aece
commit e904a1f0b4
13 changed files with 430 additions and 207 deletions

View File

@@ -621,7 +621,7 @@ Device *Device::create(DriverHandle *driverHandle, NEO::Device *neoDevice, uint3
device->getSourceLevelDebugger()
->notifyNewDevice(osInterface ? osInterface->getDeviceHandle() : 0);
}
if (static_cast<DriverHandleImp *>(driverHandle)->enableSysman) {
if (static_cast<DriverHandleImp *>(driverHandle)->enableSysman && !device->isSubdevice) {
device->setSysmanHandle(L0::SysmanDeviceHandleContext::init(device->toHandle()));
}