Deprecated: please see new documentation site.


"FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data (as well as of even/odd data, i.e. the discrete cosine/sine transforms or DCT/DST)."

Version and Availability

There are many versions/compiler pairs of FFTW available on the Linux clusters. The library is installed in /usr/local/packages/fftw-<version number>-<compiler>/ on all systems (except on eric, where it's installed at /usr/local/packages/pro/fftw<2|3>-mvapich-<gcc|intel>/. Version numbers available are 2.1.5 and 3.1.2. Compilers choices are intel9.1, intel10.1, and gnu.


To use fftw, one must set the following environmental variable properly (you can do this in your .profile or .cshrc file):

ksh or bash:
 export FFTW=/usr/local/packages/fftw-<version number>-<compiler>
csh or tcsh:
 setenv FFTW=/usr/local/packages/fftw-<version number>-<compiler>

Add the following to your compile line:

cc ... -I$FFTW/include

Add the following to your linking line:

cc ... -L$FFTW/lib -lfftw<2|3>

Where <2|3> should be replaced with 2 if using version 2.1.5, or 3 if using version 3.1.2

Additional Information

On-line documentation is avialable.

Users may direct questions to

Powered by MediaWiki