aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2020-12-21 09:22:14 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2020-12-30 00:35:35 +0000
commit8a8f4fac9776b036aec2a50b1473c30750ed32d2 (patch)
tree538ecac5031212898ba4216cd38cf29ffa8cc7d0
parentb49988c5178d9491aa6223434aeede280e72ef64 (diff)
downloadComputeLibrary-8a8f4fac9776b036aec2a50b1473c30750ed32d2.tar.gz
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 <giorgio.arena@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4730 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
-rw-r--r--src/core/CL/cl_kernels/fft.cl4
1 files changed, 2 insertions, 2 deletions
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; \