refactor: Store AIL in root device environment

Instead of storing AIL configurations in global table, store it
in root device environment.
This also prevents potential scenario with accessing deleted memory due
to symbol collision when application uses both OCL/L0 libraries.
- AIL is now stored in root device environment, and gets initialized
with other helpers
- Minor: corrected naming in ULTs

Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
Related-To: NEO-9240
This commit is contained in:
Kacper Nowak
2023-10-31 02:33:24 +00:00
committed by Compute-Runtime-Automation
parent 78b01e25d3
commit 02ef252b7d
14 changed files with 98 additions and 182 deletions

View File

@@ -13,10 +13,8 @@ namespace NEO {
class MockAILConfiguration : public AILConfiguration {
public:
bool initProcessExecutableName() override {
initCalled = true;
return true;
}
bool initCalled = false;
void modifyKernelIfRequired(std::string &kernel) override {}
bool isFallbackToPatchtokensRequired(const std::string &kernelSources) override {
@@ -33,7 +31,7 @@ class MockAILConfiguration : public AILConfiguration {
};
template <PRODUCT_FAMILY productFamily>
class AILMock : public AILConfigurationHw<productFamily> {
class AILWhitebox : public AILConfigurationHw<productFamily> {
public:
using AILConfiguration::apply;
using AILConfiguration::isKernelHashCorrect;