diff options
author | Isabella Gottardi <isabella.gottardi@arm.com> | 2017-10-12 17:28:51 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 02aabcca4904adba592fc9840085c87f336d11fb (patch) | |
tree | dbf947425cc91f6d31ad180a312ef1ad97ed34ee /utils/Utils.h | |
parent | 6681d24ccc084a0d98d84edadc8aeb5416159261 (diff) | |
download | ComputeLibrary-02aabcca4904adba592fc9840085c87f336d11fb.tar.gz |
COMPMID-583 - Implemented reference implementation and validation tests (NEON and CL) for Histogram
Change-Id: Iccf6b4483cb8394dab2f861a737583126f9bed81
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/91601
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'utils/Utils.h')
-rw-r--r-- | utils/Utils.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/Utils.h b/utils/Utils.h index 4e5bc815ab..9d2b517708 100644 --- a/utils/Utils.h +++ b/utils/Utils.h @@ -35,6 +35,7 @@ #ifdef ARM_COMPUTE_CL #include "arm_compute/core/CL/OpenCL.h" +#include "arm_compute/runtime/CL/CLDistribution1D.h" #include "arm_compute/runtime/CL/CLTensor.h" #endif /* ARM_COMPUTE_CL */ #ifdef ARM_COMPUTE_GC @@ -189,6 +190,25 @@ inline void unmap(CLTensor &tensor) { tensor.unmap(); } + +/** Maps a distribution if needed + * + * @param[in] distribution Distribution to be mapped + * @param[in] blocking Specified if map is blocking or not + */ +inline void map(CLDistribution1D &distribution, bool blocking) +{ + distribution.map(blocking); +} + +/** Unmaps a distribution if needed + * + * @param distribution Distribution to be unmapped + */ +inline void unmap(CLDistribution1D &distribution) +{ + distribution.unmap(); +} #endif /* ARM_COMPUTE_CL */ #ifdef ARM_COMPUTE_GC |