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:
Mrozek, Michal
2019-06-14 07:10:45 +02:00
committed by sys_ocldev
parent 8e969684f1
commit be48b56732
7 changed files with 23 additions and 27 deletions

View File

@@ -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);
}