From d3d803cdb0cf51089f0b9311b01b36ae6e84d349 Mon Sep 17 00:00:00 2001 From: Zbigniew Zdanowicz Date: Tue, 18 Jan 2022 13:36:57 +0000 Subject: [PATCH] Enable Implicit Scaling on Level Zero * This commits enables by default implicit scaling, but only on PVC B step * Users can disable this feature by debug flag EnableImplicitScaling=0| Related-To: NEO-6589 Signed-off-by: Zbigniew Zdanowicz --- level_zero/core/source/helpers/implicit_scaling_l0.cpp | 4 ++-- .../sources/helper/api_specific_config_l0_tests.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/level_zero/core/source/helpers/implicit_scaling_l0.cpp b/level_zero/core/source/helpers/implicit_scaling_l0.cpp index a31a0deed3..b2f99c39dd 100644 --- a/level_zero/core/source/helpers/implicit_scaling_l0.cpp +++ b/level_zero/core/source/helpers/implicit_scaling_l0.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Intel Corporation + * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -9,6 +9,6 @@ namespace NEO { namespace ImplicitScaling { -bool apiSupport = false; +bool apiSupport = true; } // namespace ImplicitScaling } // namespace NEO diff --git a/level_zero/core/test/unit_tests/sources/helper/api_specific_config_l0_tests.cpp b/level_zero/core/test/unit_tests/sources/helper/api_specific_config_l0_tests.cpp index 7c3fdeea03..05387bc8ba 100644 --- a/level_zero/core/test/unit_tests/sources/helper/api_specific_config_l0_tests.cpp +++ b/level_zero/core/test/unit_tests/sources/helper/api_specific_config_l0_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Intel Corporation + * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -37,7 +37,7 @@ TEST(ApiSpecificConfigL0Tests, givenMaxAllocSizeWhenGettingReducedMaxAllocSizeTh TEST(ApiSpecificConfigL0Tests, WhenGettingRegistryPathThenL0RegistryPathIsReturned) { EXPECT_STREQ(L0::registryPath, ApiSpecificConfig::getRegistryPath()); } -TEST(ImplicitScalingApiTests, givenLevelZeroApiUsedThenSupportDisabled) { - EXPECT_FALSE(ImplicitScaling::apiSupport); +TEST(ImplicitScalingApiTests, givenLevelZeroApiUsedThenSupportEnabled) { + EXPECT_TRUE(ImplicitScaling::apiSupport); } } // namespace NEO