Fourier transforming the rows of an array

whats the fastest way to do 1d fourier transforms of the rows of a 2-d array in cufortran

Have you looked at using cuFFT?

That should be the fastest method for computing FFTs.

Yes I am trying to do it with cuFFT.

Ok, then you should already be using the fastest method.

Or is you question more on how to use cuFFT?

If so, then we have a few basic examples under “<install_dir>/examples/CUDA-Libraries/cuFFT”.

They aren’t exactly what you want, but should give some guidance. I’m not an expert in using cuFFT, but I believe the main change in your case is to use cufftPlanMany instead of cufftPlan2D shown in the examples.