diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-08-23 12:44:11 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-08-24 20:23:49 +0000 |
commit | 275f99cb09606191c5589952d57175be655de74a (patch) | |
tree | bf3a7e41930a292069f52d603fe0a63a18304a65 /src/core/CL/kernels/CLLKTrackerKernel.cpp | |
parent | 601ba3f3ee78f6bbc2d046648b064b9aaa7e88a6 (diff) | |
download | ComputeLibrary-275f99cb09606191c5589952d57175be655de74a.tar.gz |
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 <georgios.pinitas@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1803
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/kernels/CLLKTrackerKernel.cpp')
-rw-r--r-- | src/core/CL/kernels/CLLKTrackerKernel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/CL/kernels/CLLKTrackerKernel.cpp b/src/core/CL/kernels/CLLKTrackerKernel.cpp index 40ed630c89..68a210c115 100644 --- a/src/core/CL/kernels/CLLKTrackerKernel.cpp +++ b/src/core/CL/kernels/CLLKTrackerKernel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -83,7 +83,7 @@ void CLLKTrackerInitKernel::run(const Window &window, cl::CommandQueue &queue) ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this); ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(ICLKernel::window(), window); - enqueue(queue, *this, window); + enqueue(queue, *this, window, lws_hint()); } void CLLKTrackerFinalizeKernel::configure(ICLLKInternalKeypointArray *new_points_internal, ICLKeyPointArray *new_points) @@ -112,7 +112,7 @@ void CLLKTrackerFinalizeKernel::run(const Window &window, cl::CommandQueue &queu ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this); ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(ICLKernel::window(), window); - enqueue(queue, *this, window); + enqueue(queue, *this, window, lws_hint()); } CLLKTrackerStage0Kernel::CLLKTrackerStage0Kernel() @@ -202,7 +202,7 @@ void CLLKTrackerStage0Kernel::run(const Window &window, cl::CommandQueue &queue) add_2D_tensor_argument(idx, _old_scharr_gx, window); add_2D_tensor_argument(idx, _old_scharr_gy, window); - enqueue(queue, *this, window); + enqueue(queue, *this, window, lws_hint()); } CLLKTrackerStage1Kernel::CLLKTrackerStage1Kernel() @@ -284,5 +284,5 @@ void CLLKTrackerStage1Kernel::run(const Window &window, cl::CommandQueue &queue) unsigned int idx = 0; add_2D_tensor_argument(idx, _new_input, window); - enqueue(queue, *this, window); + enqueue(queue, *this, window, lws_hint()); } |