mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Kernel refactor.
- Change function names to indicate they work on SVM allocations. - Remove one function used only in tests. Change-Id: I9b18d9fee3d4f2a46a7f458ca73d39b3863ce6d3 Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
8e969684f1
commit
be48b56732
@@ -520,15 +520,15 @@ TEST_F(CloneKernelTest, cloneKernelWithExecInfo) {
|
||||
GraphicsAllocation *pSvmAlloc = svmData->gpuAllocation;
|
||||
ASSERT_NE(nullptr, pSvmAlloc);
|
||||
|
||||
pSourceKernel->setKernelExecInfo(pSvmAlloc);
|
||||
pSourceKernel->setSvmKernelExecInfo(pSvmAlloc);
|
||||
|
||||
EXPECT_EQ(1u, pSourceKernel->getKernelSvmGfxAllocations().size());
|
||||
EXPECT_EQ(1u, pSourceKernel->kernelSvmGfxAllocations.size());
|
||||
|
||||
retVal = pClonedKernel->cloneKernel(pSourceKernel);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
EXPECT_EQ(pSourceKernel->getKernelSvmGfxAllocations().size(), pClonedKernel->getKernelSvmGfxAllocations().size());
|
||||
EXPECT_EQ(pSourceKernel->getKernelSvmGfxAllocations().at(0), pClonedKernel->getKernelSvmGfxAllocations().at(0));
|
||||
EXPECT_EQ(pSourceKernel->kernelSvmGfxAllocations.size(), pClonedKernel->kernelSvmGfxAllocations.size());
|
||||
EXPECT_EQ(pSourceKernel->kernelSvmGfxAllocations.at(0), pClonedKernel->kernelSvmGfxAllocations.at(0));
|
||||
|
||||
pContext->getSVMAllocsManager()->freeSVMAlloc(ptrSVM);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user