From 8be9148814b88e5b0cabd5a4d2b1f4ff470a8c1c Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Tue, 26 Mar 2019 17:23:28 +0000 Subject: COMPMID-1959: Implements 2D FFT on OpenCL Change-Id: I73cf3984a5463acc854c8a59dc2bd9a5234cd99c Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/936 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice --- arm_compute/runtime/CL/functions/CLFFT1D.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'arm_compute/runtime/CL/functions/CLFFT1D.h') diff --git a/arm_compute/runtime/CL/functions/CLFFT1D.h b/arm_compute/runtime/CL/functions/CLFFT1D.h index 1612cf7f50..029023c524 100644 --- a/arm_compute/runtime/CL/functions/CLFFT1D.h +++ b/arm_compute/runtime/CL/functions/CLFFT1D.h @@ -28,6 +28,7 @@ #include "arm_compute/core/CL/kernels/CLFFTDigitReverseKernel.h" #include "arm_compute/core/CL/kernels/CLFFTRadixStageKernel.h" +#include "arm_compute/core/CL/kernels/CLFFTScaleKernel.h" #include "arm_compute/runtime/CL/CLMemoryGroup.h" #include "arm_compute/runtime/CL/CLTensor.h" #include "arm_compute/runtime/FunctionDescriptors.h" @@ -39,8 +40,9 @@ class ICLTensor; /** Basic function to execute one dimensional FFT. This function calls the following OpenCL kernels: * - * -# @ref CLFFTDigitReverseKernel Performs digit reverse - * -# @ref CLFFTRadixStageKernel A list of FFT kernels depending on the radix decomposition + * -# @ref CLFFTDigitReverseKernel Performs digit reverse. + * -# @ref CLFFTRadixStageKernel A list of FFT kernels depending on the radix decomposition. + * -# @ref CLFFTScaleKernel Performs output scaling in case of in inverse FFT. */ class CLFFT1D : public IFunction { @@ -69,11 +71,13 @@ public: protected: CLMemoryGroup _memory_group; - CLTensor _digit_reversed_input; - CLTensor _digit_reverse_indices; CLFFTDigitReverseKernel _digit_reverse_kernel; std::unique_ptr _fft_kernels; + CLFFTScaleKernel _scale_kernel; + CLTensor _digit_reversed_input; + CLTensor _digit_reverse_indices; unsigned int _num_ffts; + bool _run_scale; }; } // namespace arm_compute #endif /*__ARM_COMPUTE_CLFFT1D_H__ */ -- cgit v1.2.1