Source Level Debugger - disable support on BDW

- suppress Gmock warning in DeviceWithSourceLevelDebugger test

Change-Id: Iab9190d3fd7a17741baf87ebe1fbc7244631653b
This commit is contained in:
Hoppe, Mateusz
2018-05-22 13:22:56 +02:00
committed by sys_ocldev
parent 467738f791
commit c104db1d5e
13 changed files with 87 additions and 30 deletions

View File

@@ -362,9 +362,13 @@ void Device::initializeCaps() {
deviceInfo.preferredLocalAtomicAlignment = MemoryConstants::cacheLineSize;
deviceInfo.preferredPlatformAtomicAlignment = MemoryConstants::cacheLineSize;
deviceInfo.sourceLevelDebuggerActive = (sourceLevelDebugger) ? sourceLevelDebugger->isDebuggerActive() : false;
if (deviceInfo.sourceLevelDebuggerActive) {
this->preemptionMode = PreemptionMode::Disabled;
if (hwInfo.capabilityTable.sourceLevelDebuggerSupported) {
deviceInfo.sourceLevelDebuggerActive = (sourceLevelDebugger) ? sourceLevelDebugger->isDebuggerActive() : false;
if (deviceInfo.sourceLevelDebuggerActive) {
this->preemptionMode = PreemptionMode::Disabled;
}
} else {
deviceInfo.sourceLevelDebuggerActive = false;
}
}
} // namespace OCLRT