mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Temporarily opt-out from additional compatibility checks on DG2 and MTL for Blender and its derivatives AOT-compiled kernels. This prevents a long kernel recompilation. Additionally, same behavior can be enforced for other applications manually via NEO debug key named DoNotUseProductConfigForValidationWa. Signed-off-by: Kacper Nowak <kacper.nowak@intel.com> Related-To: NEO-9240
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/ail/ail_configuration.h"
|
|
|
|
namespace NEO {
|
|
class MockAILConfiguration : public AILConfiguration {
|
|
public:
|
|
bool initProcessExecutableName() override {
|
|
return true;
|
|
}
|
|
void modifyKernelIfRequired(std::string &kernel) override {}
|
|
|
|
bool isFallbackToPatchtokensRequired(const std::string &kernelSources) override {
|
|
return false;
|
|
}
|
|
|
|
bool contextSyncFlagReturn = false;
|
|
bool isContextSyncFlagRequired() override {
|
|
return contextSyncFlagReturn;
|
|
}
|
|
|
|
bool fallbackToLegacyValidationLogic = false;
|
|
bool useLegacyValidationLogic() override {
|
|
return fallbackToLegacyValidationLogic;
|
|
}
|
|
|
|
protected:
|
|
void applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) override {}
|
|
};
|
|
|
|
template <PRODUCT_FAMILY productFamily>
|
|
class AILWhitebox : public AILConfigurationHw<productFamily> {
|
|
public:
|
|
using AILConfiguration::apply;
|
|
using AILConfiguration::isKernelHashCorrect;
|
|
using AILConfiguration::processName;
|
|
using AILConfiguration::sourcesContain;
|
|
};
|
|
|
|
} // namespace NEO
|