Child pages
  • FFTW library
Skip to end of metadata
Go to start of metadata

 

 

General Information

Home pageVersionsModule dependencies
CompilerMPI
www.fftw.org3.3.4GCC/4.9.3-2.25OpenMPI/1.10.2
3.3.4GCC/5.4.0-2.26OpenMPI/1.10.3
3.3.6GCC/6.3.0-2.27OpenMPI/2.0.2

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.:

$ module load GCC/5.4.0-2.26 OpenMPI/1.10.3 FFTW/3.3.4

 

The FFTW installations include serial and parallel libraries in single, double, long double and quadruple precision, see the table below:

PrecisionSerialThreads (POSIX)OpenMPMPI
single

libfftw3f.a

libfftw3f_threads.a

libfftw3f_omp.a

libfftw3f_mpi.a

doublelibfftw3.alibfftw3_threads.alibfftw3_omp.alibfftw3_mpi.a
long doublelibfftw3l.alibfftw3l_threads.alibfftw3l_omp.alibfftw3l_mpi.a
quadruplelibfftw3q.alibfftw3q_threads.alibfftw3q_omp.alibfftw3q_mpi.a

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:

$ icc -openmp fft_test.c -lfftw3_omp -lfftw3

Further Information

 

  • No labels