fftw
Table of Content
Versions and Availability
About the Software
FFTW 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.
Usage
On SuperMike, Philip abd Eric, softenv defines some variables which point at the library home directory. Use soft-dbq to determine it's name, then use it to add a link option to your build. You may see something like this (the output has been edited for brevity):
$ soft-dbq +fftw-3.3.3-Intel-13.0.0-openmpi-1.6.2 This is all the information associated with the key or macro +fftw-3.3.3-Intel-13.0.0-openmpi-1.6.2. . . . fftw_HOME = /usr/local/packages/fftw/3.3.3/Intel-13.0.0-openmpi-1.6.2
On SuperMIC and QB-2, module defines the variables. Use module show to show the names.
$ module show fftw/3.3.3/INTEL-140-MVAPICH2-2.0 ...... setenv LHPC_ROOTFFTW /usr/local/packages/fftw/3.3.3/INTEL-140-MVAPICH2-2.0 ......
The compile and build options to use would be:
-I${fftw_HOME}/include -L${fftw_HOME}/lib -lname
or
-I${LHPC_ROOTFFTW}/include -L${LHPC_ROOTFFTW}/lib -lname
The include files to use, and the library name depend on features needed. For more information, please refer to the materials in the Resources section.
Resources
Last modified: September 10 2020 11:58:50.