|Home page||Versions||Module dependencies|
FFTW is a library developed at Massachusetts Institute of Technology (MIT) for computing the Discrete Fourier Transform (DFT) in one or more dimensions, of both real and complex data. The library supports serial transforms, multi-threaded transforms, and distributed-memory parallel transforms using MPI. FFTW include interfaces for both C and Fortran.
Usage on Idun
Load one of the FFTW, and the corresponding GCC and OpenMPI modules to use FFTW on Idun, e.g.:
The FFTW installations include serial and parallel libraries in single, double, long double and quadruple precision, see the table below:
The basic usage of FFTW is to link with the serial FFTW library, e.g. in double precision, add at the link stage
-lfftw3. When using one of the parallel versions of FFTW, in addition add the appropriate library from the table. For example, to link a C program using OpenMP transforms with the double precision FFTW version, using the Intel compiler and linking shared libraries, specify: