Rate This Document
Findability
Accuracy
Completeness
Readability

Installing FFTW

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the FFTW installation package.
    tar -xvf fftw-3.3.8.tar.gz
  3. Go to the directory generated after the decompression.
    cd fftw-3.3.8
  4. Perform the configuration.
    export CC=`which clang`
    export CXX=`which clang++`
    export FC=`which flang`
    ./configure --prefix=/path/to/FFTW --enable-shared --enable-static --enable-fma --enable-neon
  5. Perform the compilation and installation.
    make -j 96
    make install
  6. Edit the environment variable file.
    vi ~/.bashrc
  7. Press i to enter the edit mode and run the following commands to load the environment variables.
    export PATH=/path/to/FFTW/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/FFTW/lib:$LD_LIBRARY_PATH
  8. Press Esc, type :wq!, and press Enter to save the file and exit.
  9. Make the environment variables take effect.
    source ~/.bashrc