mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix: remove not needed cooperative kernel checks
Related-To: HSD-18039871488 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
49a2050312
commit
9bdd7b784a
@@ -1724,8 +1724,6 @@ HWTEST2_F(FrontEndPrimaryBatchBufferCommandListTest,
|
||||
|
||||
mockKernelImmData->kernelDescriptor->kernelAttributes.perThreadScratchSize[0] = 0x40;
|
||||
|
||||
NEO::debugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
|
||||
|
||||
EXPECT_TRUE(commandList->frontEndStateTracking);
|
||||
EXPECT_TRUE(commandQueue->frontEndStateTracking);
|
||||
|
||||
|
||||
@@ -977,8 +977,6 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPro
|
||||
|
||||
EXPECT_TRUE(commandList->frontEndStateTracking);
|
||||
|
||||
NEO::debugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
|
||||
|
||||
auto &cmdStream = *commandList->getCmdContainer().getCommandStream();
|
||||
auto &cmdBuffers = commandList->getCmdContainer().getCmdBufferAllocations();
|
||||
|
||||
@@ -1394,8 +1392,6 @@ HWTEST2_F(FrontEndMultiReturnCommandListTest,
|
||||
auto &productHelper = device->getProductHelper();
|
||||
productHelper.fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
|
||||
NEO::debugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
|
||||
|
||||
EXPECT_TRUE(commandList->frontEndStateTracking);
|
||||
EXPECT_TRUE(commandQueue->frontEndStateTracking);
|
||||
|
||||
|
||||
@@ -1322,7 +1322,7 @@ HWTEST_F(CmdlistAppendLaunchKernelTests, whenEncodingWorkDimForIndirectDispatchT
|
||||
}
|
||||
|
||||
using CommandListAppendLaunchKernel = Test<ModuleFixture>;
|
||||
HWTEST2_F(CommandListAppendLaunchKernel, givenCooperativeAndNonCooperativeKernelsWhenAppendLaunchCooperativeKernelIsCalledThenReturnError, IsAtLeastSkl) {
|
||||
HWTEST2_F(CommandListAppendLaunchKernel, givenCooperativeAndNonCooperativeKernelsWhenAppendLaunchCooperativeKernelIsCalledThenReturnSuccess, IsAtLeastSkl) {
|
||||
Mock<::L0::KernelImp> kernel;
|
||||
std::unique_ptr<Module> pMockModule = std::make_unique<Mock<Module>>(device, nullptr);
|
||||
kernel.module = pMockModule.get();
|
||||
@@ -1338,7 +1338,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenCooperativeAndNonCooperativeKernel
|
||||
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
|
||||
launchParams.isCooperative = true;
|
||||
result = pCommandList->appendLaunchKernelWithParams(&kernel, groupCount, nullptr, launchParams);
|
||||
EXPECT_EQ(ZE_RESULT_ERROR_INVALID_ARGUMENT, result);
|
||||
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
|
||||
|
||||
pCommandList = std::make_unique<WhiteBox<::L0::CommandListCoreFamily<gfxCoreFamily>>>();
|
||||
pCommandList->initialize(device, NEO::EngineGroupType::compute, 0u);
|
||||
@@ -1347,7 +1347,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenCooperativeAndNonCooperativeKernel
|
||||
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
|
||||
launchParams.isCooperative = false;
|
||||
result = pCommandList->appendLaunchKernelWithParams(&kernel, groupCount, nullptr, launchParams);
|
||||
EXPECT_EQ(ZE_RESULT_ERROR_INVALID_ARGUMENT, result);
|
||||
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
|
||||
}
|
||||
|
||||
HWTEST2_F(CommandListAppendLaunchKernel, givenKernelWithSlmSizeExceedingLocalMemorySizeWhenAppendLaunchKernelWithParamsIsCalledThenDebugMsgErrIsPrintedAndOutOfDeviceMemoryIsReturned, IsAtLeastSkl) {
|
||||
|
||||
@@ -597,6 +597,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, whenAppendLaunchCooperativeKernelAndQue
|
||||
engineGroupType = gfxCoreHelper.getEngineGroupType(aub_stream::EngineType::ENGINE_CCS, EngineUsage::cooperative, *defaultHwInfo);
|
||||
}
|
||||
pCommandList->initialize(device, engineGroupType, 0u);
|
||||
pCommandList->isFlushTaskSubmissionEnabled = true;
|
||||
|
||||
ze_event_pool_desc_t eventPoolDesc = {};
|
||||
eventPoolDesc.flags = ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP;
|
||||
@@ -697,7 +698,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenCooperativeKernelWhenAppendLaunchC
|
||||
|
||||
HWTEST2_F(CommandListAppendLaunchKernel, givenAnyCooperativeKernelAndMixingAllowedWhenAppendLaunchCooperativeKernelIsCalledThenCommandListTypeIsProperlySet, IsAtLeastSkl) {
|
||||
DebugManagerStateRestore restorer;
|
||||
debugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
|
||||
|
||||
createKernel();
|
||||
kernel->setGroupSize(4, 1, 1);
|
||||
ze_group_count_t groupCount{8, 1, 1};
|
||||
@@ -726,7 +727,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenAnyCooperativeKernelAndMixingAllow
|
||||
|
||||
HWTEST2_F(CommandListAppendLaunchKernel, givenCooperativeAndNonCooperativeKernelsAndAllowMixingWhenAppendLaunchCooperativeKernelIsCalledThenReturnSuccess, IsAtLeastSkl) {
|
||||
DebugManagerStateRestore restorer;
|
||||
debugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
|
||||
|
||||
Mock<::L0::KernelImp> kernel;
|
||||
auto pMockModule = std::unique_ptr<Module>(new Mock<Module>(device, nullptr));
|
||||
kernel.module = pMockModule.get();
|
||||
|
||||
@@ -220,7 +220,7 @@ HWTEST2_F(CommandListTestsReserveSize, givenCommandListWhenGetReserveSshSizeThen
|
||||
using CommandListAppendLaunchKernel = Test<ModuleFixture>;
|
||||
HWTEST2_F(CommandListAppendLaunchKernel, givenVariousKernelsWhenUpdateStreamPropertiesIsCalledThenRequiredStateFinalStateAndCommandsToPatchAreCorrectlySet, IsAtLeastXeHpCore) {
|
||||
DebugManagerStateRestore restorer;
|
||||
debugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
|
||||
|
||||
debugManager.flags.AllowPatchingVfeStateInCommandLists.set(1);
|
||||
|
||||
Mock<::L0::KernelImp> defaultKernel;
|
||||
@@ -296,7 +296,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenVariousKernelsWhenUpdateStreamProp
|
||||
|
||||
HWTEST2_F(CommandListAppendLaunchKernel, givenVariousKernelsAndPatchingDisallowedWhenUpdateStreamPropertiesIsCalledThenCommandsToPatchAreEmpty, IsAtLeastXeHpCore) {
|
||||
DebugManagerStateRestore restorer;
|
||||
debugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
|
||||
|
||||
Mock<::L0::KernelImp> defaultKernel;
|
||||
auto pMockModule1 = std::unique_ptr<Module>(new Mock<Module>(device, nullptr));
|
||||
defaultKernel.module = pMockModule1.get();
|
||||
|
||||
@@ -1057,7 +1057,7 @@ size_t estimateAllCommmandLists(MockCommandQueueHw<gfxCoreFamily> *commandQueue,
|
||||
|
||||
HWTEST2_F(CommandQueueTest, whenExecuteCommandListsIsCalledThenCorrectSizeOfFrontEndCmdsIsCalculatedAndCorrectStateIsSet, IsAtLeastXeHpCore) {
|
||||
DebugManagerStateRestore restorer;
|
||||
debugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
|
||||
|
||||
debugManager.flags.AllowPatchingVfeStateInCommandLists.set(1);
|
||||
ze_command_queue_desc_t desc = {};
|
||||
NEO::CommandStreamReceiver *csr = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user