Installing FFTW
Procedure
- Use PuTTY to log in to the server as the root user.
- Obtain the FFTW installation package.
wget https://fftw.org/pub/fftw/fftw-3.3.8.tar.gz
- Decompress the FFTW installation package.
tar –zxvf fftw-3.3.8.tar.gz
- Go to the directory generated after the decompression.
cd fftw-3.3.8
- Execute the bootstrap.sh script.
./bootstrap.sh
- Perform the configuration and installation.
./configure --prefix=/path/to/FFTW --enable-single --enable-float --enable-neon --enable-shared --enable-threads --enable-openmp --enable-mpi CFLAGS="-O3 -fomit-frame-pointer -fstrict-aliasing" make -j && make install make clean ./configure --prefix=/path/to/FFTW --enable-long-double --enable-shared --enable-threads --enable-openmp --enable-mpi CFLAGS="-O3 -fomit-frame-pointer -fstrict-aliasing" make -j && make install make clean ./configure --prefix=/path/to/FFTW --enable-shared --enable-threads --enable-openmp --enable-mpi CFLAGS="-O3 -fomit-frame-pointer -fstrict-aliasing" make -j && make install
- Configure the environment variables.
export PATH=/path/to/FFTW/bin:$PATH export LD_LIBRARY_PATH=/path/to/FFTW/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment