Skip to content

Commit

Permalink
fix: initialize pointers to events
Browse files Browse the repository at this point in the history
Signed-off-by: Szymon Morek <[email protected]>
  • Loading branch information
smorek-intel authored and Compute-Runtime-Automation committed Dec 18, 2024
1 parent ac42206 commit c5d541d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opencl/source/command_queue/command_queue_staging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cl_int CommandQueue::enqueueStagingBufferMemcpy(cl_bool blockingCopy, void *dstP
CsrSelectionArgs csrSelectionArgs{CL_COMMAND_SVM_MEMCPY, &size};
csrSelectionArgs.direction = TransferDirection::hostToLocal;
auto csr = &selectCsrForBuiltinOperation(csrSelectionArgs);
cl_event profilingEvent;
cl_event profilingEvent = nullptr;

bool isSingleTransfer = false;
ChunkCopyFunction chunkCopy = [&](void *chunkSrc, void *chunkDst, size_t chunkSize) -> int32_t {
Expand All @@ -46,7 +46,7 @@ cl_int CommandQueue::enqueueStagingWriteImage(Image *dstImage, cl_bool blockingC
size_t inputRowPitch, size_t inputSlicePitch, const void *ptr, cl_event *event) {
CsrSelectionArgs csrSelectionArgs{CL_COMMAND_WRITE_IMAGE, nullptr, dstImage, this->getDevice().getRootDeviceIndex(), globalRegion, nullptr, globalOrigin};
auto &csr = selectCsrForBuiltinOperation(csrSelectionArgs);
cl_event profilingEvent;
cl_event profilingEvent = nullptr;

bool isSingleTransfer = false;
ChunkTransferImageFunc chunkWrite = [&](void *stagingBuffer, const size_t *origin, const size_t *region) -> int32_t {
Expand All @@ -69,7 +69,7 @@ cl_int CommandQueue::enqueueStagingReadImage(Image *srcImage, cl_bool blockingCo
size_t inputRowPitch, size_t inputSlicePitch, const void *ptr, cl_event *event) {
CsrSelectionArgs csrSelectionArgs{CL_COMMAND_READ_IMAGE, srcImage, nullptr, this->getDevice().getRootDeviceIndex(), globalRegion, nullptr, globalOrigin};
auto &csr = selectCsrForBuiltinOperation(csrSelectionArgs);
cl_event profilingEvent;
cl_event profilingEvent = nullptr;

bool isSingleTransfer = false;
ChunkTransferImageFunc chunkRead = [&](void *stagingBuffer, const size_t *origin, const size_t *region) -> int32_t {
Expand Down

0 comments on commit c5d541d

Please sign in to comment.