diff --git a/opencl/source/command_queue/enqueue_common.h b/opencl/source/command_queue/enqueue_common.h index 0308447eb0..1d4145f406 100644 --- a/opencl/source/command_queue/enqueue_common.h +++ b/opencl/source/command_queue/enqueue_common.h @@ -156,7 +156,7 @@ cl_int CommandQueueHw::enqueueHandler(Surface **surfacesForResidency, EventBuilder eventBuilder; setupEvent(eventBuilder, event, commandType); - bool isMarkerWithPostSyncWrite = (CL_COMMAND_MARKER == commandType) && ((eventBuilder.getEvent() && eventBuilder.getEvent()->isProfilingEnabled()) || multiDispatchInfo.peekBuiltinOpParams().bcsSplit); + const bool isMarkerWithPostSyncWrite = (CL_COMMAND_MARKER == commandType) && ((eventBuilder.getEvent() && eventBuilder.getEvent()->isProfilingEnabled()) || multiDispatchInfo.peekBuiltinOpParams().bcsSplit); std::unique_ptr blockedCommandsData; std::unique_ptr printfHandler; @@ -194,7 +194,7 @@ cl_int CommandQueueHw::enqueueHandler(Surface **surfacesForResidency, auto &productHelper = getDevice().getProductHelper(); bool canUsePipeControlInsteadOfSemaphoresForOnCsrDependencies = false; bool isNonStallingIoqBarrier = (CL_COMMAND_BARRIER == commandType) && !isOOQEnabled() && (DebugManager.flags.OptimizeIoqBarriersHandling.get() != 0); - bool isNonStallingIoqBarrierWithDependencies = isNonStallingIoqBarrier && (eventsRequest.numEventsInWaitList > 0); + const bool isNonStallingIoqBarrierWithDependencies = isNonStallingIoqBarrier && (eventsRequest.numEventsInWaitList > 0); if (computeCommandStreamReceiver.peekTimestampPacketWriteEnabled()) { canUsePipeControlInsteadOfSemaphoresForOnCsrDependencies = this->peekLatestSentEnqueueOperation() == EnqueueProperties::Operation::GpuKernel &&