refactor: change debugging enabled to debugging mode

Related-To: NEO-7630

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2023-01-18 14:41:50 +00:00
committed by Compute-Runtime-Automation
parent db719b2acb
commit e62c5e25d5
29 changed files with 84 additions and 73 deletions

View File

@@ -89,9 +89,9 @@ cl_int CL_API_CALL clGetPlatformIDs(cl_uint numEntries,
NEO::EnvironmentVariableReader envReader;
if (NEO::DebugManager.flags.ExperimentalEnableL0DebuggerForOpenCL.get()) {
auto programDebugging = envReader.getSetting("ZET_ENABLE_PROGRAM_DEBUGGING", false);
if (programDebugging) {
executionEnvironment->setDebuggingEnabled();
auto programDebugging = envReader.getSetting("ZET_ENABLE_PROGRAM_DEBUGGING", 0);
if (programDebugging != 0) {
executionEnvironment->setDebuggingMode(NEO::DebuggingMode::Enabled);
}
}
if (envReader.getSetting("NEO_FP64_EMULATION", false)) {