diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2018-01-17 09:40:27 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:43:42 +0000 |
commit | 5237e01c342b9301951a799842e9c48813b66fd4 (patch) | |
tree | 257e9f92e0599c0de68668ce568a3a4f37c1f0b6 /src/core/CL/ICLKernel.cpp | |
parent | 652bde553f506caac4c563988dc9baf746f9584d (diff) | |
download | ComputeLibrary-5237e01c342b9301951a799842e9c48813b66fd4.tar.gz |
COMPMID-838 Implement CLPermute
Change-Id: I6d97b649f1ebc289c9e6f8949e67740a6b3cbcb2
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/116636
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/core/CL/ICLKernel.cpp')
-rw-r--r-- | src/core/CL/ICLKernel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/CL/ICLKernel.cpp b/src/core/CL/ICLKernel.cpp index 3eb94b7ddc..ee02129bba 100644 --- a/src/core/CL/ICLKernel.cpp +++ b/src/core/CL/ICLKernel.cpp @@ -184,6 +184,12 @@ size_t ICLKernel::get_max_workgroup_size() cl::NDRange ICLKernel::gws_from_window(const Window &window) { + // Make sure that dimensions > Z are 1 + for(unsigned int i = 3; i < Coordinates::num_max_dimensions; ++i) + { + ARM_COMPUTE_ERROR_ON((window[i].end() - window[i].start()) != 1); + } + if((window.x().end() - window.x().start()) == 0 || (window.y().end() - window.y().start()) == 0) { return cl::NullRange; |