FFTW - shawfdong/hyades GitHub Wiki

Build FFTW with MPI

Download the latest stable release of FFTW:

$ cd /scratch/
$ wget http://www.fftw.org/fftw-3.3.4.tar.gz
$ tar xvfz fftw-3.3.4.tar.gz

Configure FFTW 3.3.4[1][2]:

$ export CC=icc
$ export F77=ifort
$ export MPICC=mpiicc
$ ./configure --enable-mpi --enable-avx --prefix=/pfs/sw/parallel/impi_intel/fftw-3.3.4
Note I didn't enable the FFTW threads library. Please let me know if you need the FFTW threads library.

Compile and install FFTW 3.3.4 with MPI:

$ make
$ make install

Using FFTW with MPI

FFTW 3.3.4 with MPI is installed at /pfs/sw/parallel/impi_intel/fftw-3.3.4 on Hyades. To facilitate the usage of FFTW with MPI, I've created a module fftw to set up environment for the FFTW library[3].

Note the environment variable FPATH sets the path for include and module files for Intel Fortran Compiler.

To display information about the module:

$ module show fftw

To load the module:

$ module load fftw

References

  1. ^ FFTW - FFTW MPI Installation
  2. ^ FFTW - Installation on Unix
  3. ^ Environment Variables Affecting GCC
⚠️ **GitHub.com Fallback** ⚠️