From 5e96be7707a571b136dc64256af399dbbb0fdfe0 Mon Sep 17 00:00:00 2001 From: Vidhya Sudhan Loganathan Date: Tue, 18 Dec 2018 14:17:00 +0000 Subject: COMPMID-1722 : CL: Implement Range Change-Id: I88da6eb5289c303b1dc91606c1560ce629746058 Reviewed-on: https://review.mlplatform.org/381 Reviewed-by: Gian Marco Iodice Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- arm_compute/core/CL/CLHelpers.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'arm_compute/core/CL/CLHelpers.h') diff --git a/arm_compute/core/CL/CLHelpers.h b/arm_compute/core/CL/CLHelpers.h index a86870a250..78427c3738 100644 --- a/arm_compute/core/CL/CLHelpers.h +++ b/arm_compute/core/CL/CLHelpers.h @@ -135,5 +135,14 @@ bool dot8_acc_supported(const cl::Device &device); * @return True if the configuration is supported */ bool cl_winograd_convolution_layer_supported(const Size2D &output_tile, const Size2D &kernel_size, DataLayout data_layout); + +/** Helper function to get the preferred native vector width size for built-in scalar types that can be put into vectors + * + * @param[in] device A CL device + * @param[in] dt data type + * + * @return preferred vector width + */ +size_t preferred_vector_width(const cl::Device &device, DataType dt); } #endif /* __ARM_COMPUTE_CLHELPERS_H__ */ -- cgit v1.2.1