Files
compute-runtime/shared/source/ail/gen9/glk/ail_configuration_glk.cpp
Mateusz Jablonski bf60d77e10 refactor: correct naming of enum class constants n/n
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-12-20 10:56:37 +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_GEMINILAKE> enableAILGLK;
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapGLK = {
{"resolve", {AILEnumeration::disableHostPtrTracking}} // Disable hostPtrTracking for DaVinci Resolve
};
template <>
inline void AILConfigurationHw<IGFX_GEMINILAKE>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
auto search = applicationMapGLK.find(processName);
if (search != applicationMapGLK.end()) {
for (size_t i = 0; i < search->second.size(); ++i) {
switch (search->second[i]) {
case AILEnumeration::disableHostPtrTracking:
runtimeCapabilityTable.hostPtrTrackingEnabled = false;
break;
default:
break;
}
}
}
}
template class AILConfigurationHw<IGFX_GEMINILAKE>;
} // namespace NEO