Install FFTW3 With MPI
FFTW3 is a library designed to compute discrete Fourier transforms. As described
in the the official FFTW site, there are various versions available, with different
features and different levels of maturity. In this tutorial I deal with the
installation of version 3, including the experimental MPI version. However the
installation instructions seems to be valid (although not tested) also for the more
popular version 2.
Contents
1 General Remarks
2 Build and Install
o 2.1 Serial version only
o 2.2 MPI version
3 Compilation with Shared Libraries
4 Basic Usage
o 4.1 Serial
o 4.2 Parallel MPI
4.2.1 Important notes about MPI-FFTW3 memory distribution (do not skip)
General Remarks
As usual we would like to install the libraries in the user space, so we will create
a couple of directories for that purpose:
mkdir $HOME/usr
mkdir $HOME/soft
To install FFTW3, download the package from the FFTW3 download page and
decompress it:
cd ~/soft
tar -zxvf fftw-3.3.3.tar.gz
cd fftw-3.3.3