mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
911acd81a2
commit
fe0c7f1004
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user