From 6c6597c1e17c32c6ad861780eee454a7deecfb75 Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Sun, 24 Sep 2017 12:09:41 +0100 Subject: COMPMID-500: Move HarrisCorners to new validation Change-Id: I4e21ad98d029e360010c5927f04b716527700a00 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/88888 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- src/core/CL/ICLKernel.cpp | 5 ++++- src/core/Validate.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/CL/ICLKernel.cpp b/src/core/CL/ICLKernel.cpp index b0ac40adf7..9663fd200f 100644 --- a/src/core/CL/ICLKernel.cpp +++ b/src/core/CL/ICLKernel.cpp @@ -43,7 +43,10 @@ void arm_compute::enqueue(cl::CommandQueue &queue, ICLKernel &kernel, const Wind return; } - ARM_COMPUTE_ERROR_ON((0 == (window.x().end() - window.x().start())) || (0 == (window.y().end() - window.y().start()))); + if((window.x().end() - window.x().start()) == 0 || (window.y().end() - window.y().start()) == 0) + { + return; + } cl::NDRange gws((window.x().end() - window.x().start()) / window.x().step(), (window.y().end() - window.y().start()) / window.y().step(), diff --git a/src/core/Validate.cpp b/src/core/Validate.cpp index 6925133b57..084a325711 100644 --- a/src/core/Validate.cpp +++ b/src/core/Validate.cpp @@ -184,7 +184,7 @@ void arm_compute::error_on_unconfigured_kernel(const char *function, const char ARM_COMPUTE_UNUSED(kernel); ARM_COMPUTE_ERROR_ON_LOC(kernel == nullptr, function, file, line); - ARM_COMPUTE_ERROR_ON_LOC_MSG((kernel->window().x().start() == kernel->window().x().end()) && (kernel->window().x().end() == 0), + ARM_COMPUTE_ERROR_ON_LOC_MSG((kernel->window().x().start() == kernel->window().x().end()) && (kernel->window().x().end() == 0) && (kernel->window().x().step() == 0), function, file, line, "This kernel hasn't been configured."); } -- cgit v1.2.1