mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
78b01e25d3
commit
02ef252b7d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user