mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add AIL functionality
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
ab73b61b77
commit
2afb785bba
@ -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()));
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user