aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/Utils.h
diff options
context:
space:
mode:
authorManuel Bottini <manuel.bottini@arm.com>2019-10-21 17:59:07 +0100
committerManuel Bottini <manuel.bottini@arm.com>2019-12-03 13:58:56 +0000
commit7b9998d0fe1f98768b690ead10ebfa166d1b873d (patch)
treed3f6b81fb2e414a9e0f8ed9597eab27ef970d725 /arm_compute/runtime/Utils.h
parentf9179d393a07eb9eed753e315df79d22391906c6 (diff)
downloadComputeLibrary-7b9998d0fe1f98768b690ead10ebfa166d1b873d.tar.gz
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 <manuel.bottini@arm.com> Reviewed-on: https://review.mlplatform.org/c/2202 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Diffstat (limited to 'arm_compute/runtime/Utils.h')
-rw-r--r--arm_compute/runtime/Utils.h13
1 files changed, 10 insertions, 3 deletions
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 */