FFTW
C library to compute the discrete Fourier transforms
FFTW requires an environment module
In order to use FFTW, you must first load the appropriate environment module:
module load gnu or intel
According to the FFTW website, "FFTW (Fastest Fourier Transform in the West) 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). We believe that FFTW, which is free software, should become the FFT library of choice for most applications."
Using FFTW on RCC Resources#
The fftw3 libraries can be accessed in the RCC HPC environment. The following example (fftw_test) is from the webpage
of Dr. John Burkhardt, who has compiled a group of programming examples and test files (See "Additional References and Resources"
section below). You may follow this quick tutorial to download, compile, link, and execute this example using the fftw3
libraries with either the gnu
or intel
compiler. (Note that lines beginning with a "#" symbol are comments to provide
information for the command.)
Additional References and Resources#
- FFTW Home Page. (2023). Fftw.org. https://www.fftw.org/
- Burkardt, J. (2017). fftw_test. https://people.sc.fsu.edu/~jburkardt/c_src/fftw_test/fftw_test.c
- John Burkardt’s Home Page. (2021). John Burkardt. https://people.sc.fsu.edu/~jburkardt/
- FFTW - Tutorial. (2023). fftw.org. https://www.fftw.org/fftw2_doc/fftw_2.html
- FFTW Documentation (FFTW 3.3.10). (2023). ftw.org. https://www.fftw.org/fftw3_doc/