From 8a8f4fac9776b036aec2a50b1473c30750ed32d2 Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Mon, 21 Dec 2020 09:22:14 +0000 Subject: Fix FFT FP16 failures for some OpenCL compilers - Fix unsupported native_cos and native_sin for half data types. Change to regular cos and sin functions. Resolves: COMPMID-4064 Change-Id: Id07fa0fd811e00a93f5b848636ad4f4481e9a409 Signed-off-by: Giorgio Arena Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4730 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Michalis Spyrou --- src/core/CL/cl_kernels/fft.cl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/CL/cl_kernels/fft.cl') diff --git a/src/core/CL/cl_kernels/fft.cl b/src/core/CL/cl_kernels/fft.cl index b257451652..51763a620a 100644 --- a/src/core/CL/cl_kernels/fft.cl +++ b/src/core/CL/cl_kernels/fft.cl @@ -33,8 +33,8 @@ { \ VEC_DATA_TYPE(DATA_TYPE, 2) \ w, tmp; \ - w.x = native_cos(phi); \ - w.y = native_sin(phi); \ + w.x = cos(phi); \ + w.y = sin(phi); \ tmp.x = (w.x * input.x) - (w.y * input.y); \ tmp.y = (w.x * input.y) + (w.y * input.x); \ input = tmp; \ -- cgit v1.2.1