Installing FFTW
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the FFTW installation package.
tar -xvf fftw-3.3.8.tar.gz
- Go to the directory generated after the decompression.
cd fftw-3.3.8
- 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
- Perform the compilation and installation.
make -j 96 make install
- Edit the environment variable file.
vi ~/.bashrc
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Make the environment variables take effect.
source ~/.bashrc
Parent topic: Configuring the Compilation Environment