diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/CL/ICLKernel.cpp | 5 | ||||
-rw-r--r-- | src/core/Validate.cpp | 2 |
2 files changed, 5 insertions, 2 deletions
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."); } |