fix: when size is 0 then don't copy

Related-To: NEO-8381

Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
Baj, Tomasz
2023-11-30 15:39:10 +00:00
committed by Compute-Runtime-Automation
parent 911acd81a2
commit fe0c7f1004
3 changed files with 41 additions and 10 deletions

View File

@@ -162,7 +162,10 @@ class MockCommandQueue : public CommandQueue {
cl_int enqueueSVMMemFill(void *svmPtr, const void *pattern, size_t patternSize, size_t size, cl_uint numEventsInWaitList,
const cl_event *eventWaitList, cl_event *event) override { return CL_SUCCESS; }
cl_int enqueueMarkerWithWaitList(cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *event) override { return CL_SUCCESS; }
cl_int enqueueMarkerWithWaitList(cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *event) override {
enqueueMarkerWithWaitListCalled = true;
return CL_SUCCESS;
}
cl_int enqueueMigrateMemObjects(cl_uint numMemObjects, const cl_mem *memObjects, cl_mem_migration_flags flags,
cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *event) override { return CL_SUCCESS; }
@@ -235,6 +238,7 @@ class MockCommandQueue : public CommandQueue {
return CommandQueue::isCompleted(gpgpuTaskCount, bcsStates);
}
bool enqueueMarkerWithWaitListCalled = false;
bool releaseIndirectHeapCalled = false;
bool waitForTimestampsCalled = false;
cl_int writeBufferRetValue = CL_SUCCESS;