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:
Compute-Runtime-Validation
2025-03-09 23:39:47 +01:00
committed by Compute-Runtime-Automation
parent 406048f43c
commit 6ee39ed94c
7 changed files with 9 additions and 43 deletions

View File

@@ -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() {

View File

@@ -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();