mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
[9/n] Unified Shared Memory
- Wire in support for clMemFreeINTEL. Related-To: NEO-3148 Change-Id: Ibef61b7d9bdfa3021533faa0019b6b443145f1be Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
72841e36c2
commit
0758661c52
@ -3443,7 +3443,19 @@ void *clSharedMemAllocINTEL(
|
||||
cl_int clMemFreeINTEL(
|
||||
cl_context context,
|
||||
const void *ptr) {
|
||||
return CL_OUT_OF_HOST_MEMORY;
|
||||
|
||||
Context *neoContext = nullptr;
|
||||
auto retVal = validateObjects(WithCastToInternal(context, &neoContext));
|
||||
|
||||
if (retVal != CL_SUCCESS) {
|
||||
return retVal;
|
||||
}
|
||||
|
||||
if (!neoContext->getSVMAllocsManager()->freeSVMAlloc(const_cast<void *>(ptr))) {
|
||||
return CL_INVALID_VALUE;
|
||||
}
|
||||
|
||||
return CL_SUCCESS;
|
||||
}
|
||||
|
||||
cl_int clGetMemAllocInfoINTEL(
|
||||
|
Reference in New Issue
Block a user