mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
refactor: correct naming of enum class constants 4/n
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
01dd503e47
commit
432142c574
@@ -194,7 +194,7 @@ void DriverHandleImp::updateRootDeviceBitFields(std::unique_ptr<NEO::Device> &ne
|
||||
}
|
||||
|
||||
void DriverHandleImp::enableRootDeviceDebugger(std::unique_ptr<NEO::Device> &neoDevice) {
|
||||
if (enableProgramDebugging != NEO::DebuggingMode::Disabled) {
|
||||
if (enableProgramDebugging != NEO::DebuggingMode::disabled) {
|
||||
const auto rootDeviceIndex = neoDevice->getRootDeviceIndex();
|
||||
auto rootDeviceEnvironment = neoDevice->getExecutionEnvironment()->rootDeviceEnvironments[rootDeviceIndex].get();
|
||||
rootDeviceEnvironment->initDebuggerL0(neoDevice.get());
|
||||
@@ -230,7 +230,7 @@ ze_result_t DriverHandleImp::initialize(std::vector<std::unique_ptr<NEO::Device>
|
||||
this->devices.push_back(device);
|
||||
|
||||
auto osInterface = device->getNEODevice()->getRootDeviceEnvironment().osInterface.get();
|
||||
if (osInterface && !osInterface->isDebugAttachAvailable() && enableProgramDebugging != NEO::DebuggingMode::Disabled) {
|
||||
if (osInterface && !osInterface->isDebugAttachAvailable() && enableProgramDebugging != NEO::DebuggingMode::disabled) {
|
||||
NEO::printDebugString(NEO::debugManager.flags.PrintDebugMessages.get(), stderr,
|
||||
"Debug mode is not enabled in the system.\n");
|
||||
return ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE;
|
||||
|
||||
@@ -160,7 +160,7 @@ struct DriverHandleImp : public DriverHandle {
|
||||
void enableRootDeviceDebugger(std::unique_ptr<NEO::Device> &neoDevice);
|
||||
|
||||
// Environment Variables
|
||||
NEO::DebuggingMode enableProgramDebugging = NEO::DebuggingMode::Disabled;
|
||||
NEO::DebuggingMode enableProgramDebugging = NEO::DebuggingMode::disabled;
|
||||
bool enableSysman = false;
|
||||
bool enablePciIdDeviceOrder = false;
|
||||
uint8_t powerHint = 0;
|
||||
|
||||
Reference in New Issue
Block a user