Add AIL functionality

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
Kamil Diedrich
2021-07-21 08:47:43 +00:00
committed by Compute-Runtime-Automation
parent ab73b61b77
commit 2afb785bba
29 changed files with 396 additions and 18 deletions

View File

@ -7,6 +7,7 @@
#include "shared/source/execution_environment/root_device_environment.h"
#include "shared/source/ail/ail_configuration.h"
#include "shared/source/aub/aub_center.h"
#include "shared/source/built_ins/built_ins.h"
#include "shared/source/compiler_interface/compiler_interface.h"
@ -67,6 +68,23 @@ GmmClientContext *RootDeviceEnvironment::getGmmClientContext() const {
return gmmHelper->getClientContext();
}
bool RootDeviceEnvironment::initAilConfiguration() {
auto ailConfiguration = AILConfiguration::get(hwInfo->platform.eProductFamily);
if (ailConfiguration == nullptr) {
return true;
}
auto result = ailConfiguration->initProcessExecutableName();
if (result != true) {
return false;
}
ailConfiguration->apply(hwInfo->capabilityTable);
return true;
}
void RootDeviceEnvironment::initGmm() {
if (!gmmHelper) {
gmmHelper.reset(new GmmHelper(osInterface.get(), getHardwareInfo()));

View File

@ -52,6 +52,7 @@ struct RootDeviceEnvironment {
bool initOsInterface(std::unique_ptr<HwDeviceId> &&hwDeviceId, uint32_t rootDeviceIndex);
void initGmm();
void initDebugger();
MOCKABLE_VIRTUAL bool initAilConfiguration();
GmmHelper *getGmmHelper() const;
GmmClientContext *getGmmClientContext() const;
MOCKABLE_VIRTUAL CompilerInterface *getCompilerInterface();