From 6f31f8c50a3d409b1ec587efba406454b53e9452 Mon Sep 17 00:00:00 2001 From: Matthew Bentham Date: Fri, 27 Oct 2017 11:50:06 +0100 Subject: Allow running without cl_khr_fp16 Change-Id: I0f5396c8f32acc28914e2ff9fe953f977a3077b9 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93405 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- src/core/CL/cl_kernels/helpers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/CL/cl_kernels/helpers.h') diff --git a/src/core/CL/cl_kernels/helpers.h b/src/core/CL/cl_kernels/helpers.h index 4421e74816..330d67daa5 100644 --- a/src/core/CL/cl_kernels/helpers.h +++ b/src/core/CL/cl_kernels/helpers.h @@ -24,7 +24,10 @@ #ifndef ARM_COMPUTE_HELPER_H #define ARM_COMPUTE_HELPER_H +#if defined(ARM_COMPUTE_OPENCL_FP16_ENABLED) #pragma OPENCL EXTENSION cl_khr_fp16 : enable +#endif // defined(ARM_COMPUTE_OPENCL_FP16_ENABLED) + #if defined(ARM_COMPUTE_DEBUG_ENABLED) #pragma OPENCL EXTENSION cl_arm_printf : enable #endif // defined(ARM_COMPUTE_DEBUG_ENABLED) -- cgit v1.2.1