From 275f99cb09606191c5589952d57175be655de74a Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 23 Aug 2019 12:44:11 +0100 Subject: COMPMID-2451: Use kernel lws_hint() on enqueue Avoid querying device's default lws on kernel enqueue as this is already cached in the kernel during configuration. Change-Id: Ia26ecb712caeb8f042356815e0cfd23522764d27 Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/1803 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- src/core/CL/kernels/CLMinMaxLocationKernel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/CL/kernels/CLMinMaxLocationKernel.cpp') diff --git a/src/core/CL/kernels/CLMinMaxLocationKernel.cpp b/src/core/CL/kernels/CLMinMaxLocationKernel.cpp index 0c7f3bc070..e865b45e73 100644 --- a/src/core/CL/kernels/CLMinMaxLocationKernel.cpp +++ b/src/core/CL/kernels/CLMinMaxLocationKernel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -134,7 +134,7 @@ void CLMinMaxKernel::run(const Window &window, cl::CommandQueue &queue) { unsigned int idx = 0; add_2D_tensor_argument(idx, _input, slice); - enqueue(queue, *this, slice); + enqueue(queue, *this, slice, lws_hint()); } while(window.slide_window_slice_2D(slice)); @@ -226,7 +226,7 @@ void CLMinMaxLocationKernel::run(const Window &window, cl::CommandQueue &queue) { unsigned int idx = 0; add_2D_tensor_argument(idx, _input, slice); - enqueue(queue, *this, slice); + enqueue(queue, *this, slice, lws_hint()); } while(window.slide_window_slice_2D(slice)); } -- cgit v1.2.1