mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
use release for cl-objects instead of delete
- fix for data race in events - modification of the addition child event Change-Id: I6ea3a413f13f13a91d37d20d8b9fad37d0ffafb9
This commit is contained in:

committed by
sys_ocldev

parent
3820a5e8e5
commit
e1eab521e7
@ -139,6 +139,7 @@ HWTEST_P(ParentKernelEnqueueTest, GivenBlocksWithPrivateMemoryWhenEnqueueKernelT
|
||||
EXPECT_FALSE(csr.isMadeResident(privateAllocation));
|
||||
uEvent.setStatus(CL_COMPLETE);
|
||||
EXPECT_TRUE(csr.isMadeResident(privateAllocation));
|
||||
pCmdQ->releaseVirtualEvent();
|
||||
}
|
||||
}
|
||||
|
||||
@ -199,6 +200,7 @@ HWTEST_P(ParentKernelEnqueueTest, GivenParentKernelWithBlocksWhenEnqueueKernelTh
|
||||
for (auto blockId = 0u; blockId < blockCount; blockId++) {
|
||||
EXPECT_TRUE(csr.isMadeResident(blockKernelManager->getBlockKernelInfo(blockId)->getGraphicsAllocation()));
|
||||
}
|
||||
pCmdQ->releaseVirtualEvent();
|
||||
}
|
||||
}
|
||||
|
||||
@ -337,6 +339,7 @@ HWCMDTEST_P(IGFX_GEN8_CORE, ParentKernelEnqueueTest, givenBlockedQueueWhenParent
|
||||
pCmdQ->enqueueKernel(pKernel, 1, globalOffsets, workItems, workItems, 1, &eventBlocking, nullptr);
|
||||
|
||||
EXPECT_FALSE(mockDevQueue.isEMCriticalSectionFree());
|
||||
pCmdQ->releaseVirtualEvent();
|
||||
}
|
||||
}
|
||||
|
||||
@ -500,6 +503,7 @@ HWTEST_F(ParentKernelEnqueueFixture, GivenParentKernelWhenEnqueuedToBlockedQueue
|
||||
pCmdQ->enqueueKernel(parentKernel, 1, offset, gws, gws, 1, &eventBlocking, nullptr);
|
||||
|
||||
EXPECT_TRUE(pDevQueueHw->isEMCriticalSectionFree());
|
||||
pCmdQ->releaseVirtualEvent();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user