#!/bin/bash # Assumes ifort and icc are installed in /home/common/nfs. Run this script to compile both intel fftw2, fftw3 libraries. ##### # Important: must run this code as root, or it may not find the correct links, e.g., -liomp5 # It may also not able to install if it can't find icc in the path. In that case, ln -s the icc into /usr/bin, then rerun this script again. # ##### ### install fftw3xf cd /home/common/nfs/intel/Compiler/11.1/072/mkl/examples/fftw3xf make libem64t compiler=intel MKLROOT=/opt/intel/Compiler/11.1/072/mkl cd /home/common/nfs/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf make libem64t compiler=intel MKLROOT=/opt/intel/Compiler/11.1/072/mkl ### install fftw2xf cd /home/common/nfs/intel/Compiler/11.1/072/mkl/examples/fftw2xf make libem64t compiler=intel MKLROOT=/opt/intel/Compiler/11.1/072/mkl cd /home/common/nfs/intel/Compiler/11.1/072/mkl/interfaces/fftw2xf make libem64t compiler=intel MKLROOT=/opt/intel/Compiler/11.1/072/mkl ## Note that the intel versions of fftw2/fftw3 are kept in /home/common/nfs/intel/Compiler/11.1/072/mkl/examples/fftw3xf and /home/common/nfs/intel/Compiler/11.1/072/mkl/examples/fftw2xf. The include folder for these libraries are to be found in /home/common/nfs/intel/Compiler/11.1/072/mkl/include/fftw