Files
compute-runtime/shared/source/ail/gen11/icllp/ail_configuration_icllp.cpp
Kacper Nowak 5fe902c819 feat(AIL): make AIL oneDNN WA platform-independent
If on clCreateProgramWithSource() call we detect a nGen dummy kernel usage,
then enforce fallback to the patchtokens format (only for this kernel).
Extend this logic to all platforms (previously - only for TGL/ICL).
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2023-02-10 20:49:45 +01:00

39 lines
1.1 KiB
C++

/*
* Copyright (C) 2022-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/ail/ail_configuration_base.inl"
#include "shared/source/helpers/hw_info.h"
#include <map>
#include <vector>
namespace NEO {
static EnableAIL<IGFX_ICELAKE_LP> enableAILICLLP;
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapICLLP = {
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
};
template <>
inline void AILConfigurationHw<IGFX_ICELAKE_LP>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
auto search = applicationMapICLLP.find(processName);
if (search != applicationMapICLLP.end()) {
for (size_t i = 0; i < search->second.size(); ++i) {
switch (search->second[i]) {
case AILEnumeration::DISABLE_HOST_PTR_TRACKING:
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
break;
default:
break;
}
}
}
}
template class AILConfigurationHw<IGFX_ICELAKE_LP>;
} // namespace NEO