#! /bin/bash #This script compile and install fftw.2.1.5 for a Rocks Linux cluster in /share/apps/fftw. Run this script as root # assuming mpif90 is already installed # Check whether mpif90 is installed by issuing 'mpif90 -v' # Typical output will be like mpif90 for MPICH2 version 1.4.1p1 cd /share/apps/configrepo rm fftw-2.1.5.tar.gz wget http://www2.fizik.usm.my/configrepo/howto/fftw/fftw-2.1.5.tar.gz gunzip fftw-2.1.5.tar.gz tar -xvf fftw-2.1.5.tar cd fftw-2.1.5 ./configure --with-g77-wrappers --enable-mpi --enable-threads --enable-openmp CC="cc" FC="mpiifort" --prefix=/share/apps/fftw # FC="mpif90" or FC="mpiifort" will do. But mpiifort is preferred. This assumes mpiifort is already present. See http://www2.fizik.usm.my/configrepo/howto/intel/inst_impi to install mpiifort # Check if the output of ./configure is OK before proceed. make make install ## the fftw2 lib is now be found in /share/apps/fftw/lib and the include file is found in /share/apps/fftw/include/