enable instrumentation when available

use of instrumentation will be enabled:
- runtime capability set to True
- static library available during compilation
- device reports capability

Change-Id: I43286ebf1135f3a2ec6af924e27ece03042ac0ca
This commit is contained in:
Artur Harasimiuk
2018-02-21 13:02:19 +01:00
committed by sys_ocldev
parent ed5e2c2da8
commit 63732513bb
3 changed files with 4 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ bool DeviceFactory::getDevices(HardwareInfo **pHWInfos, size_t &numDevices) {
static_cast<bool>(adapterInfo->SkuTable.FtrGpGpuMidBatchPreempt));
// Instrumentation
tempHwInfos[devNum].capabilityTable.instrumentationEnabled = false; // Intentionally disable, after enabling use adapterInfo->Caps.InstrumentationIsEnabled
tempHwInfos[devNum].capabilityTable.instrumentationEnabled &= haveInstrumentation && (adapterInfo->Caps.InstrumentationIsEnabled != 0);
tempHwInfos[devNum].capabilityTable.enableKmdNotify = DebugManager.flags.OverrideEnableKmdNotify.get() >= 0
? !!DebugManager.flags.OverrideEnableKmdNotify.get()