mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 06:23:01 +08:00
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:
committed by
Compute-Runtime-Automation
parent
bebeef0e88
commit
e00da808cb
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user