FFTW is a subroutine library written in C for computing the Discrete Fourier Transform in one or more dimensions, of both real and complex data, of arbitrary input size.  FFTW can be called from Fortran and C++ as well as from C codes.

FFTW is free software as defined by the Free Software Foundation and is distributed under the terms of the GNU General Public License. It is callable from Fortran, and works on any platform with a C compiler.

FFTW was developed at MIT by Matteo Frigo and Steven G. Johnson.

Please note: FFTW3 is not compatible with version 2.


Usage on Bridges


To see what other modules are needed, what commands are available and how to get additional help type

module help fftw3


To see what versions of FFTW3 are available type

module avail fftw3


To use FFTW3, include a command like this in your batch script or interactive session to load the FFTW3 module:

module load fftw3

Be sure you also load any other modules needed, as listed by the module help fftw3 command.

When compiling your code, use a command like:

ifort -o prog  -I${FFTW3_INCLUDE} prog.f  -lfftw3