mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Revert "fix: Fail device init if kernel debugging is misconfigured"
This reverts commit b0c92ea425.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
406048f43c
commit
6ee39ed94c
@@ -138,9 +138,7 @@ bool Device::createDeviceImpl() {
|
||||
}
|
||||
|
||||
// initialize common resources once
|
||||
if (!initializeCommonResources()) {
|
||||
return false;
|
||||
}
|
||||
initializeCommonResources();
|
||||
}
|
||||
|
||||
// create engines
|
||||
@@ -174,14 +172,15 @@ bool Device::initDeviceWithEngines() {
|
||||
return createEngines();
|
||||
}
|
||||
|
||||
bool Device::initializeCommonResources() {
|
||||
void Device::initializeCommonResources() {
|
||||
if (getExecutionEnvironment()->isDebuggingEnabled()) {
|
||||
const auto rootDeviceIndex = getRootDeviceIndex();
|
||||
auto rootDeviceEnvironment = getExecutionEnvironment()->rootDeviceEnvironments[rootDeviceIndex].get();
|
||||
rootDeviceEnvironment->initDebuggerL0(this);
|
||||
if (rootDeviceEnvironment->debugger == nullptr) {
|
||||
NEO::printDebugString(NEO::debugManager.flags.PrintDebugMessages.get(), stderr, "Debug mode is not enabled in the system.\n");
|
||||
return false;
|
||||
NEO::printDebugString(NEO::debugManager.flags.PrintDebugMessages.get(), stderr,
|
||||
"Debug mode is not enabled in the system.\n");
|
||||
getExecutionEnvironment()->setDebuggingMode(DebuggingMode::disabled);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -210,7 +209,6 @@ bool Device::initializeCommonResources() {
|
||||
deviceUsmMemAllocPoolsManager.reset(new UsmMemAllocPoolsManager(getMemoryManager(), rootDeviceIndices, deviceBitfields, this, InternalMemoryType::deviceUnifiedMemory));
|
||||
}
|
||||
initUsmReuseMaxSize();
|
||||
return true;
|
||||
}
|
||||
|
||||
void Device::initUsmReuseMaxSize() {
|
||||
|
||||
@@ -277,7 +277,7 @@ class Device : public ReferenceTrackedObject<Device>, NEO::NonCopyableAndNonMova
|
||||
|
||||
MOCKABLE_VIRTUAL bool createDeviceImpl();
|
||||
bool initDeviceWithEngines();
|
||||
bool initializeCommonResources();
|
||||
void initializeCommonResources();
|
||||
bool initDeviceFully();
|
||||
void initUsmReuseMaxSize();
|
||||
virtual bool createEngines();
|
||||
|
||||
Reference in New Issue
Block a user