mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Related-To: NEO-12159, IGC-9846, HSD-16024235164, HSD-15014782386 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
66 lines
1.7 KiB
C++
66 lines
1.7 KiB
C++
/*
|
|
* Copyright (C) 2023-2024 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/ail/ail_configuration.h"
|
|
|
|
namespace NEO {
|
|
class MockAILConfiguration : public AILConfiguration {
|
|
public:
|
|
bool initProcessExecutableNameResult = true;
|
|
bool initProcessExecutableName() override {
|
|
return initProcessExecutableNameResult;
|
|
}
|
|
void modifyKernelIfRequired(std::string &kernel) override {}
|
|
|
|
bool isFallbackToPatchtokensRequired(const std::string &kernelSources) override {
|
|
return false;
|
|
}
|
|
|
|
bool contextSyncFlagReturn = false;
|
|
bool isContextSyncFlagRequired() override {
|
|
return contextSyncFlagReturn;
|
|
}
|
|
|
|
bool isBufferPoolEnabledReturn = true;
|
|
bool isBufferPoolEnabled() override {
|
|
return isBufferPoolEnabledReturn;
|
|
}
|
|
|
|
bool fallbackToLegacyValidationLogic = false;
|
|
bool useLegacyValidationLogic() override {
|
|
return fallbackToLegacyValidationLogic;
|
|
}
|
|
bool forceRcsValue = false;
|
|
bool forceRcs() override {
|
|
return forceRcsValue;
|
|
}
|
|
|
|
bool handleDivergentBarriers() override {
|
|
return handleDivergentBarriersValue;
|
|
}
|
|
void setHandleDivergentBarriers(bool val) override {
|
|
handleDivergentBarriersValue = val;
|
|
}
|
|
bool handleDivergentBarriersValue = false;
|
|
|
|
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
|