From 5c6f3e7d2bcb3aa654d1ce5c9cc7d887e39b906c Mon Sep 17 00:00:00 2001 From: Jaroslaw Warchulski Date: Mon, 19 Aug 2024 12:36:07 +0000 Subject: [PATCH] fix: Remove patchtokens fallback AIL for DaVinci Resolve for XE2+ For other platforms, this AIL will be removed in the next change. Resolves: NEO-12358 Signed-off-by: Jaroslaw Warchulski --- shared/source/ail/ail_configuration_base.inl | 3 +-- .../ail/gen11/ehl/ail_configuration_ehl.cpp | 19 ++++++++++++++++++- .../gen11/icllp/ail_configuration_icllp.cpp | 19 ++++++++++++++++++- .../ail/gen11/lkf/ail_configuration_lkf.cpp | 19 ++++++++++++++++++- .../gen12lp/adln/ail_configuration_adln.cpp | 19 ++++++++++++++++++- .../gen12lp/adlp/ail_configuration_adlp.cpp | 19 ++++++++++++++++++- .../gen12lp/adls/ail_configuration_adls.cpp | 19 ++++++++++++++++++- .../ail/gen12lp/dg1/ail_configuration_dg1.cpp | 19 ++++++++++++++++++- .../ail/gen12lp/rkl/ail_configuration_rkl.cpp | 19 ++++++++++++++++++- .../gen12lp/tgllp/ail_configuration_tgllp.cpp | 19 ++++++++++++++++++- .../ail/gen8/bdw/ail_configuration_bdw.cpp | 19 ++++++++++++++++++- .../ail/gen9/bxt/ail_configuration_bxt.cpp | 19 ++++++++++++++++++- .../ail/gen9/cfl/ail_configuration_cfl.cpp | 19 ++++++++++++++++++- .../ail/gen9/glk/ail_configuration_glk.cpp | 19 ++++++++++++++++++- .../ail/gen9/kbl/ail_configuration_kbl.cpp | 19 ++++++++++++++++++- .../ail/gen9/skl/ail_configuration_skl.cpp | 19 ++++++++++++++++++- .../xe_hpc_core/pvc/ail_configuration_pvc.cpp | 19 ++++++++++++++++++- .../xe_hpg_core/arl/ail_configuration_arl.cpp | 17 +++++++++++++++++ .../xe_hpg_core/dg2/ail_configuration_dg2.cpp | 17 +++++++++++++++++ .../xe_hpg_core/mtl/ail_configuration_mtl.cpp | 17 +++++++++++++++++ shared/test/unit_test/ail/ail_tests_base.cpp | 13 +++++++++---- 21 files changed, 349 insertions(+), 22 deletions(-) diff --git a/shared/source/ail/ail_configuration_base.inl b/shared/source/ail/ail_configuration_base.inl index 7d0fa83ae0..ffc24f6c37 100644 --- a/shared/source/ail/ail_configuration_base.inl +++ b/shared/source/ail/ail_configuration_base.inl @@ -26,8 +26,7 @@ inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const s return true; } - for (const auto &name : {"Resolve", - "ArcControlAssist", + for (const auto &name : {"ArcControlAssist", "ArcControl"}) { if (processName == name) { return true; diff --git a/shared/source/ail/gen11/ehl/ail_configuration_ehl.cpp b/shared/source/ail/gen11/ehl/ail_configuration_ehl.cpp index d8b775f0a7..88f7422089 100644 --- a/shared/source/ail/gen11/ehl/ail_configuration_ehl.cpp +++ b/shared/source/ail/gen11/ehl/ail_configuration_ehl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 Intel Corporation + * Copyright (C) 2022-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -34,5 +34,22 @@ inline void AILConfigurationHw::applyExt(RuntimeCapabilityTabl } } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen11/icllp/ail_configuration_icllp.cpp b/shared/source/ail/gen11/icllp/ail_configuration_icllp.cpp index cb8a9fdb0b..152a7f712f 100644 --- a/shared/source/ail/gen11/icllp/ail_configuration_icllp.cpp +++ b/shared/source/ail/gen11/icllp/ail_configuration_icllp.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 Intel Corporation + * Copyright (C) 2022-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -34,5 +34,22 @@ inline void AILConfigurationHw::applyExt(RuntimeCapabilityTable } } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen11/lkf/ail_configuration_lkf.cpp b/shared/source/ail/gen11/lkf/ail_configuration_lkf.cpp index c3801aa656..f2b289c4ed 100644 --- a/shared/source/ail/gen11/lkf/ail_configuration_lkf.cpp +++ b/shared/source/ail/gen11/lkf/ail_configuration_lkf.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 Intel Corporation + * Copyright (C) 2022-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -34,5 +34,22 @@ inline void AILConfigurationHw::applyExt(RuntimeCapabilityTable } } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen12lp/adln/ail_configuration_adln.cpp b/shared/source/ail/gen12lp/adln/ail_configuration_adln.cpp index bf017f92aa..d4fc86a0b1 100644 --- a/shared/source/ail/gen12lp/adln/ail_configuration_adln.cpp +++ b/shared/source/ail/gen12lp/adln/ail_configuration_adln.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -15,6 +15,23 @@ static EnableAIL enableAILADLN; std::map> applicationMapADLN = {}; +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen12lp/adlp/ail_configuration_adlp.cpp b/shared/source/ail/gen12lp/adlp/ail_configuration_adlp.cpp index 2cfc0eb490..c69f5cb51b 100644 --- a/shared/source/ail/gen12lp/adlp/ail_configuration_adlp.cpp +++ b/shared/source/ail/gen12lp/adlp/ail_configuration_adlp.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -15,6 +15,23 @@ static EnableAIL enableAILADLP; std::map> applicationMapADLP = {}; +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen12lp/adls/ail_configuration_adls.cpp b/shared/source/ail/gen12lp/adls/ail_configuration_adls.cpp index e9dd0086ab..32284d15cf 100644 --- a/shared/source/ail/gen12lp/adls/ail_configuration_adls.cpp +++ b/shared/source/ail/gen12lp/adls/ail_configuration_adls.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -15,6 +15,23 @@ static EnableAIL enableAILADLS; std::map> applicationMapADLS = {}; +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen12lp/dg1/ail_configuration_dg1.cpp b/shared/source/ail/gen12lp/dg1/ail_configuration_dg1.cpp index cd163a71f9..ca2c5a1334 100644 --- a/shared/source/ail/gen12lp/dg1/ail_configuration_dg1.cpp +++ b/shared/source/ail/gen12lp/dg1/ail_configuration_dg1.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -15,6 +15,23 @@ static EnableAIL enableAILDG1; std::map> applicationMapDG1 = {}; +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen12lp/rkl/ail_configuration_rkl.cpp b/shared/source/ail/gen12lp/rkl/ail_configuration_rkl.cpp index 515e68b0fc..9606614a4a 100644 --- a/shared/source/ail/gen12lp/rkl/ail_configuration_rkl.cpp +++ b/shared/source/ail/gen12lp/rkl/ail_configuration_rkl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -15,6 +15,23 @@ static EnableAIL enableAILRKL; std::map> applicationMapRKL = {}; +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen12lp/tgllp/ail_configuration_tgllp.cpp b/shared/source/ail/gen12lp/tgllp/ail_configuration_tgllp.cpp index 013db2cd57..c1759b5c3f 100644 --- a/shared/source/ail/gen12lp/tgllp/ail_configuration_tgllp.cpp +++ b/shared/source/ail/gen12lp/tgllp/ail_configuration_tgllp.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2023 Intel Corporation + * Copyright (C) 2021-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -15,6 +15,23 @@ static EnableAIL enableAILTGLLP; std::map> applicationMapTGLLP = {}; +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen8/bdw/ail_configuration_bdw.cpp b/shared/source/ail/gen8/bdw/ail_configuration_bdw.cpp index adf365164c..1298f0bffe 100644 --- a/shared/source/ail/gen8/bdw/ail_configuration_bdw.cpp +++ b/shared/source/ail/gen8/bdw/ail_configuration_bdw.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2023 Intel Corporation + * Copyright (C) 2023-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -10,6 +10,23 @@ namespace NEO { static EnableAIL enableAILBDW; +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen9/bxt/ail_configuration_bxt.cpp b/shared/source/ail/gen9/bxt/ail_configuration_bxt.cpp index f2132a67c1..e9d6a9c0f6 100644 --- a/shared/source/ail/gen9/bxt/ail_configuration_bxt.cpp +++ b/shared/source/ail/gen9/bxt/ail_configuration_bxt.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 Intel Corporation + * Copyright (C) 2022-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -34,5 +34,22 @@ inline void AILConfigurationHw::applyExt(RuntimeCapabilityTable &r } } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen9/cfl/ail_configuration_cfl.cpp b/shared/source/ail/gen9/cfl/ail_configuration_cfl.cpp index c8d3c87af2..c91c1d6d21 100644 --- a/shared/source/ail/gen9/cfl/ail_configuration_cfl.cpp +++ b/shared/source/ail/gen9/cfl/ail_configuration_cfl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 Intel Corporation + * Copyright (C) 2022-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -34,5 +34,22 @@ inline void AILConfigurationHw::applyExt(RuntimeCapabilityTable } } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen9/glk/ail_configuration_glk.cpp b/shared/source/ail/gen9/glk/ail_configuration_glk.cpp index 707091bb2c..f86ed3c857 100644 --- a/shared/source/ail/gen9/glk/ail_configuration_glk.cpp +++ b/shared/source/ail/gen9/glk/ail_configuration_glk.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 Intel Corporation + * Copyright (C) 2022-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -34,5 +34,22 @@ inline void AILConfigurationHw::applyExt(RuntimeCapabilityTable } } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen9/kbl/ail_configuration_kbl.cpp b/shared/source/ail/gen9/kbl/ail_configuration_kbl.cpp index 251486b1bb..3154c5fe39 100644 --- a/shared/source/ail/gen9/kbl/ail_configuration_kbl.cpp +++ b/shared/source/ail/gen9/kbl/ail_configuration_kbl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 Intel Corporation + * Copyright (C) 2022-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -34,5 +34,22 @@ inline void AILConfigurationHw::applyExt(RuntimeCapabilityTable & } } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/gen9/skl/ail_configuration_skl.cpp b/shared/source/ail/gen9/skl/ail_configuration_skl.cpp index a93799e92f..a8d336595d 100644 --- a/shared/source/ail/gen9/skl/ail_configuration_skl.cpp +++ b/shared/source/ail/gen9/skl/ail_configuration_skl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 Intel Corporation + * Copyright (C) 2022-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -34,5 +34,22 @@ inline void AILConfigurationHw::applyExt(RuntimeCapabilityTable &r } } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/xe_hpc_core/pvc/ail_configuration_pvc.cpp b/shared/source/ail/xe_hpc_core/pvc/ail_configuration_pvc.cpp index 915d096c5a..153c262cc6 100644 --- a/shared/source/ail/xe_hpc_core/pvc/ail_configuration_pvc.cpp +++ b/shared/source/ail/xe_hpc_core/pvc/ail_configuration_pvc.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -15,6 +15,23 @@ static EnableAIL enableAILPVC; std::map> applicationMapPVC = {}; +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/xe_hpg_core/arl/ail_configuration_arl.cpp b/shared/source/ail/xe_hpg_core/arl/ail_configuration_arl.cpp index 9806eae8e2..6443554e53 100644 --- a/shared/source/ail/xe_hpg_core/arl/ail_configuration_arl.cpp +++ b/shared/source/ail/xe_hpg_core/arl/ail_configuration_arl.cpp @@ -34,6 +34,23 @@ void AILConfigurationHw::applyExt(RuntimeCapabilityTable &runtim } } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/xe_hpg_core/dg2/ail_configuration_dg2.cpp b/shared/source/ail/xe_hpg_core/dg2/ail_configuration_dg2.cpp index b02c12345b..c3646ceb75 100644 --- a/shared/source/ail/xe_hpg_core/dg2/ail_configuration_dg2.cpp +++ b/shared/source/ail/xe_hpg_core/dg2/ail_configuration_dg2.cpp @@ -70,6 +70,23 @@ bool AILConfigurationHw::isBufferPoolEnabled() { return iterator == applicationsBufferPoolDisabled.end(); } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/source/ail/xe_hpg_core/mtl/ail_configuration_mtl.cpp b/shared/source/ail/xe_hpg_core/mtl/ail_configuration_mtl.cpp index 740087c3c6..e2777dbfd0 100644 --- a/shared/source/ail/xe_hpg_core/mtl/ail_configuration_mtl.cpp +++ b/shared/source/ail/xe_hpg_core/mtl/ail_configuration_mtl.cpp @@ -58,6 +58,23 @@ bool AILConfigurationHw::isBufferPoolEnabled() { return iterator == applicationsBufferPoolDisabled.end(); } +template <> +inline bool AILConfigurationHw::isFallbackToPatchtokensRequired(const std::string &kernelSources) { + std::string_view dummyKernelSource{"kernel void _(){}"}; + if (sourcesContain(kernelSources, dummyKernelSource)) { + return true; + } + + for (const auto &name : {"Resolve", + "ArcControlAssist", + "ArcControl"}) { + if (processName == name) { + return true; + } + } + return false; +} + template class AILConfigurationHw; } // namespace NEO diff --git a/shared/test/unit_test/ail/ail_tests_base.cpp b/shared/test/unit_test/ail/ail_tests_base.cpp index 352d707812..e56321ee9e 100644 --- a/shared/test/unit_test/ail/ail_tests_base.cpp +++ b/shared/test/unit_test/ail/ail_tests_base.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2023 Intel Corporation + * Copyright (C) 2023-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -26,14 +26,19 @@ HWTEST2_F(AILBaseTests, whenKernelSourceIsNotANGenDummyKernelThenDoNotEnforcePat EXPECT_FALSE(ail.isFallbackToPatchtokensRequired(dummyKernelSource)); } -HWTEST2_F(AILBaseTests, givenApplicationNamesThatRequirAILWhenCheckingIfPatchtokenFallbackIsRequiredThenIsCorrectResult, IsAtLeastSkl) { +HWTEST2_F(AILBaseTests, givenApplicationNamesThatRequireAILWhenCheckingIfPatchtokenFallbackIsRequiredThenIsCorrectResult, IsAtLeastSkl) { AILWhitebox ail; - for (const auto &name : {"Resolve", - "ArcControlAssist", + for (const auto &name : {"ArcControlAssist", "ArcControl"}) { ail.processName = name; EXPECT_TRUE(ail.isFallbackToPatchtokensRequired("")); } } +HWTEST2_F(AILBaseTests, givenResolveNameWhenCheckingIfPatchtokenFallbackIsRequiredThenIsCorrectResult, IsAtMostXeHpcCore) { + AILWhitebox ail; + ail.processName = "Resolve"; + EXPECT_TRUE(ail.isFallbackToPatchtokensRequired("")); +} + } // namespace NEO