mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 04:23:00 +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
@@ -4002,7 +4002,7 @@ cl_int CL_API_CALL clSetKernelExecInfo(cl_kernel kernel,
|
||||
return CL_INVALID_VALUE;
|
||||
}
|
||||
|
||||
pKernel->clearKernelExecInfo();
|
||||
pKernel->clearSvmKernelExecInfo();
|
||||
for (uint32_t i = 0; i < numPointers; i++) {
|
||||
auto svmData = pKernel->getContext().getSVMAllocsManager()->getSVMAlloc((const void *)pSvmPtrList[i]);
|
||||
if (svmData == nullptr) {
|
||||
@@ -4011,7 +4011,7 @@ cl_int CL_API_CALL clSetKernelExecInfo(cl_kernel kernel,
|
||||
return retVal;
|
||||
}
|
||||
GraphicsAllocation *svmAlloc = svmData->gpuAllocation;
|
||||
pKernel->setKernelExecInfo(svmAlloc);
|
||||
pKernel->setSvmKernelExecInfo(svmAlloc);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user