From 4cabc9e4d267e1c7aeaa32ff6557f7f95d1c1401 Mon Sep 17 00:00:00 2001 From: Michal Mrozek Date: Tue, 9 Jul 2024 18:55:50 +0000 Subject: [PATCH] performance: remove not needed code. events are already created with queued state. Signed-off-by: Michal Mrozek --- opencl/source/event/user_event.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/opencl/source/event/user_event.cpp b/opencl/source/event/user_event.cpp index 396bd4c93e..4f6d5058c6 100644 --- a/opencl/source/event/user_event.cpp +++ b/opencl/source/event/user_event.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2023 Intel Corporation + * Copyright (C) 2018-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -17,9 +17,7 @@ namespace NEO { UserEvent::UserEvent(Context *ctx) - : Event(ctx, nullptr, CL_COMMAND_USER, CompletionStamp::notReady, CompletionStamp::notReady) { - transitionExecutionStatus(CL_QUEUED); -} + : Event(ctx, nullptr, CL_COMMAND_USER, CompletionStamp::notReady, CompletionStamp::notReady) {} void UserEvent::updateExecutionStatus() { return;