Revert "refactor: Store AIL in root device environment"

This reverts commit 02ef252b7d.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2023-11-16 19:04:39 +01:00
committed by Compute-Runtime-Automation
parent c68f55e4f6
commit 27000c06cb
14 changed files with 181 additions and 97 deletions

View File

@@ -6,7 +6,6 @@
*/
#include "shared/source/ail/ail_configuration.h"
#include "shared/source/execution_environment/root_device_environment.h"
#include "shared/source/helpers/hw_info.h"
#include "shared/source/helpers/string_helpers.h"
@@ -72,7 +71,8 @@ T *Program::create(
if (CL_SUCCESS == retVal) {
auto ail = pContext->getDevice(0)->getRootDeviceEnvironment().getAILConfigurationHelper();
auto &hwInfo = pContext->getDevice(0)->getHardwareInfo();
auto ail = AILConfiguration::get(hwInfo.platform.eProductFamily);
if (ail) {
ail->modifyKernelIfRequired(combinedString);
}