aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/CL/CLHelpers.h
diff options
context:
space:
mode:
authorMatthew Bentham <matthew.bentham@arm.com>2017-10-27 11:50:06 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit6f31f8c50a3d409b1ec587efba406454b53e9452 (patch)
treeb091ee680d135315f59a062ce22a172c82db18e3 /arm_compute/core/CL/CLHelpers.h
parentadaae7e453cc4cc07905daca68fa7b938555d581 (diff)
downloadComputeLibrary-6f31f8c50a3d409b1ec587efba406454b53e9452.tar.gz
Allow running without cl_khr_fp16
Change-Id: I0f5396c8f32acc28914e2ff9fe953f977a3077b9 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93405 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'arm_compute/core/CL/CLHelpers.h')
-rw-r--r--arm_compute/core/CL/CLHelpers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arm_compute/core/CL/CLHelpers.h b/arm_compute/core/CL/CLHelpers.h
index 1a4476e304..b93bae8d82 100644
--- a/arm_compute/core/CL/CLHelpers.h
+++ b/arm_compute/core/CL/CLHelpers.h
@@ -126,6 +126,13 @@ GPUTarget get_arch_from_target(GPUTarget target);
* @return the highest OpenCL version supported
*/
CLVersion get_cl_version(const cl::Device &device);
+/** Helper function to check whether the cl_khr_fp16 extension is supported
+ *
+ * @param[in] device A CL device
+ *
+ * @return True if the extension is supported
+ */
+bool fp16_support(const cl::Device &device);
/** Helper function to check whether the arm_non_uniform_work_group_size extension is supported
*
* @param[in] device A CL device