From 7b9998d0fe1f98768b690ead10ebfa166d1b873d Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Mon, 21 Oct 2019 17:59:07 +0100 Subject: COMPMID-1816: Use parallel reduction on 0 axis in CL ARG_MIN/ARG_MAX Introducing new CLArgMinMax kernel Change-Id: I0b8254207cc3859d19ceef9b6429cf5c1c586db0 Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/2202 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Michalis Spyrou --- arm_compute/runtime/Utils.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'arm_compute/runtime/Utils.h') diff --git a/arm_compute/runtime/Utils.h b/arm_compute/runtime/Utils.h index 15c0042a33..9a5b20eb26 100644 --- a/arm_compute/runtime/Utils.h +++ b/arm_compute/runtime/Utils.h @@ -21,8 +21,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#ifndef __ARM_COMPUTE_RUNTIME_UTILS_H__ -#define __ARM_COMPUTE_RUNTIME_UTILS_H__ +#ifndef ARM_COMPUTE_RUNTIME_UTILS_H +#define ARM_COMPUTE_RUNTIME_UTILS_H #include "arm_compute/runtime/IRuntimeContext.h" #include "arm_compute/runtime/Scheduler.h" @@ -46,5 +46,12 @@ const std::string &string_from_scheduler_type(Scheduler::Type t); * @param[in] hints Hints to use. */ void schedule_kernel_on_ctx(IRuntimeContext *ctx, ICPPKernel *kernel, const IScheduler::Hints &hints); + +/** Calculate number of stages for parallel implementations + * + * @param[in] input_x_dimension input tensor x dimension + * @param[in] axis axis to be used + */ +unsigned int calculate_number_of_stages_only_x_axis(size_t input_x_dimension, unsigned int axis); } // namespace arm_compute -#endif /* __ARM_COMPUTE_RUNTIME_UTILS_H__ */ +#endif /* ARM_COMPUTE_RUNTIME_UTILS_H */ -- cgit v1.2.1