mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
fix(ocl): disable buffer pooling on windows
Resolves: HSD-22019729729 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dab221830e
commit
ce27e0f924
@@ -139,46 +139,6 @@ HWTEST2_F(AggregatedSmallBuffersDefaultTest, givenDifferentFlagValuesAndSingleOr
|
||||
context->devices.pop_back();
|
||||
}
|
||||
|
||||
HWTEST2_F(AggregatedSmallBuffersDefaultTest, givenDifferentFlagValuesAndSingleOrMultiDeviceContextWhenCheckIfEnabledThenReturnCorrectValue, IsXeHpgCore) {
|
||||
DebugManagerStateRestore restore;
|
||||
// Single device context
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(-1);
|
||||
EXPECT_TRUE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(0);
|
||||
EXPECT_FALSE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(1);
|
||||
EXPECT_TRUE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(2);
|
||||
EXPECT_TRUE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
// Multi device context
|
||||
context->devices.push_back(nullptr);
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(-1);
|
||||
EXPECT_FALSE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(0);
|
||||
EXPECT_FALSE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(1);
|
||||
EXPECT_FALSE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
{
|
||||
debugManager.flags.ExperimentalSmallBufferPoolAllocator.set(2);
|
||||
EXPECT_TRUE(context->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(context.get()));
|
||||
}
|
||||
context->devices.pop_back();
|
||||
}
|
||||
|
||||
HWTEST2_F(AggregatedSmallBuffersDefaultTest, givenDifferentFlagValuesAndSingleOrMultiDeviceContextWhenCheckIfEnabledThenReturnCorrectValue, IsXeHpcCore) {
|
||||
DebugManagerStateRestore restore;
|
||||
// Single device context
|
||||
|
||||
Reference in New Issue
Block a user