mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Source Level Debugger - disable support on BDW
- suppress Gmock warning in DeviceWithSourceLevelDebugger test Change-Id: Iab9190d3fd7a17741baf87ebe1fbc7244631653b
This commit is contained in:
committed by
sys_ocldev
parent
467738f791
commit
c104db1d5e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user