compute-runtime/shared/source/ail/gen9/skl/ail_configuration_skl.cpp

39 lines
1.1 KiB
C++
Raw Normal View History

/*
* Copyright (C) 2022 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_SKYLAKE> enableAILSKL;
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapSKL = {
{"resolve", {AILEnumeration::DISABLE_HOST_PTR_TRACKING}} // Disable hostPtrTracking for DaVinci Resolve
};
template <>
inline void AILConfigurationHw<IGFX_SKYLAKE>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
auto search = applicationMapSKL.find(processName);
if (search != applicationMapSKL.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_SKYLAKE>;
} // namespace NEO