FFTW (Fastest Fourier Transform in the West) is a highly optimized library for computing discrete Fourier transforms (DFTs). Multiple versions are available, optimized for various compilers and MPI configurations. Incompatible versions of FFTW, MPI, or compilers can lead to errors or degraded performance.

Loading FFTW3

  • modulefftw3/mvapich2/gcc12.1/3.3.10
  • modulefftw2/openmpi/gcc/64/double/2.1.5
  • modulefftw3/mvapich2/3.3.8-float
  • modulefftw2/openmpi/gcc/64/float/2.1.5
  • modulefftw3/openmpi/gcc/64/3.3.7
  • modulefftw3/mvapich2/3.3.8
Tip: load modules inside your SLURM job script, not just on the login node, so compute nodes see the same environment. Verify with which after loading.

Example usage

Load the FFTW3 module

module load fftw3/mvapich2/gcc12.1/3.3.10

Compile a program against FFTW3

mpicc -o my_fftw_program my_fftw_program.c -lfftw3

Availability

FFTW3 is available on: SeaWulf, NVwulf, ClinWulf.