Files
compute-runtime/shared/source/os_interface/windows/wddm/read_preemption_regkey.cpp
Jaroslaw Chodor a77d2b1dde Cleanup in WDDM files
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-27 17:38:02 +02:00

19 lines
520 B
C++

/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/windows/debug_registry_reader.h"
#include "shared/source/os_interface/windows/wddm/wddm.h"
namespace NEO {
unsigned int readEnablePreemptionRegKey() {
auto registryReader = std::make_unique<RegistryReader>(false, "System\\CurrentControlSet\\Control\\GraphicsDrivers\\Scheduler");
return static_cast<unsigned int>(registryReader->getSetting("EnablePreemption", 1));
}
} // namespace NEO