mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add MigrateMem and MemAdvice implementations
Related-To: NEO-3610 Change-Id: I2c5b37927bf63fbc99a8f932baabd461798a345d Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
d37fe4904c
commit
d7236d391c
@ -3584,7 +3584,16 @@ cl_int clEnqueueMigrateMemINTEL(
|
||||
cl_uint numEventsInWaitList,
|
||||
const cl_event *eventWaitList,
|
||||
cl_event *event) {
|
||||
return CL_OUT_OF_HOST_MEMORY;
|
||||
cl_int retVal = CL_SUCCESS;
|
||||
|
||||
CommandQueue *pCommandQueue = nullptr;
|
||||
retVal = validateObjects(WithCastToInternal(commandQueue, &pCommandQueue), ptr, EventWaitList(numEventsInWaitList, eventWaitList));
|
||||
|
||||
if (retVal == CL_SUCCESS) {
|
||||
pCommandQueue->enqueueMarkerWithWaitList(numEventsInWaitList, eventWaitList, event);
|
||||
}
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
cl_int clEnqueueMemAdviseINTEL(
|
||||
@ -3595,7 +3604,16 @@ cl_int clEnqueueMemAdviseINTEL(
|
||||
cl_uint numEventsInWaitList,
|
||||
const cl_event *eventWaitList,
|
||||
cl_event *event) {
|
||||
return CL_OUT_OF_HOST_MEMORY;
|
||||
cl_int retVal = CL_SUCCESS;
|
||||
|
||||
CommandQueue *pCommandQueue = nullptr;
|
||||
retVal = validateObjects(WithCastToInternal(commandQueue, &pCommandQueue), ptr, EventWaitList(numEventsInWaitList, eventWaitList));
|
||||
|
||||
if (retVal == CL_SUCCESS) {
|
||||
pCommandQueue->enqueueMarkerWithWaitList(numEventsInWaitList, eventWaitList, event);
|
||||
}
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
cl_command_queue CL_API_CALL clCreateCommandQueueWithPropertiesKHR(cl_context context,
|
||||
|
Reference in New Issue
Block a user