mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches

Building and Installing FFTW.

Building and Installing FFTW.

The FFTW library is probably available from your software/package manager, however I recommend building it yourself to ensure it is fullly optimized for your system, and that you have all of the precisions available.

Build and Install

Folow these steps to build the FFTW library.

  1. download, the latest FFTW library from http://www.fftw.org/
  2. Unpack the tar-ball.
  3. Build fftw. This requires building each of the precisions and threading possibilities. The commands do this are below. You can also download this script which will perform each of these.
    • To build single precision:
             $ ./configure --enable-float --with-combined-threads --enable-threads --enable-shared
             $ make -j
             $ sudo make install
    • To build double precision:
             $ ./configure --with-combined-threads --enable-threads --enable-shared
             $ make -j
             $ sudo make install
    • To build long double precision:
             $ ./configure --enable-long-double --with-combined-threads --enable-threads --enable-shared
             $ make -j
             $ sudo make install
    • To build quad (__float128) precision:
             $ ./configure --enable-quad-precision --with-combined-threads --enable-threads --enable-shared
             $ make -j
             $ sudo make install