feature: add logic to control secondaryContextsSupport in ProductHelper

- product helper sets flag in GfxCoreHelper - this allows to control
secondary contexts support per product - not whole core family

Related-To: NEO-13789

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2025-01-24 10:50:51 +00:00
committed by Compute-Runtime-Automation
parent bebeef0e88
commit e00da808cb
11 changed files with 46 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2024 Intel Corporation
* Copyright (C) 2024-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -458,8 +458,17 @@ HWTEST2_P(LargeGrfTest, givenMixedLargeGrfAndSmallGrfKernelsWhenExecutedThenResu
EXPECT_FALSE(largeGrfValues[3]);
}
} else {
ASSERT_EQ(1u, largeGrfValues.size());
EXPECT_FALSE(largeGrfValues[0]);
auto &gfxCoreHelper = executionEnvironment->rootDeviceEnvironments[0]->getHelper<GfxCoreHelper>();
if (gfxCoreHelper.areSecondaryContextsSupported() == false) {
ASSERT_EQ(1u, largeGrfValues.size());
EXPECT_FALSE(largeGrfValues[0]);
} else {
EXPECT_EQ(0u, largeGrfValues.size());
largeGrfValues = NEO::UnitTestHelper<FamilyType>::getProgrammedLargeGrfValues(*this->csr,
this->csr->getCS(0));
ASSERT_NE(0u, largeGrfValues.size());
EXPECT_FALSE(largeGrfValues[0]);
}
}
expectMemory<FamilyType>(