#!/bin/bash # Assumes ifort and icc are installed. 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 # In case it does not sucess, try to yum install compat-libstdc++-33.x86_64 # It may also not able to install if it can't find icc in the path. In that case, do the folloing: # cd /usr/bin # ln -s /opt/intel/Compiler/11.0/081/bin/intel64/icc /usr/bin/. # Then rerun this script again. ##### ### install fftw3xf cd /opt/intel/Compiler/11.1/072/mkl/examples/fftw3xf make libem64t compiler=intel MKLROOT=/opt/intel/Compiler/11.1/072/mkl cd /opt/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf make libem64t compiler=intel MKLROOT=/opt/intel/Compiler/11.1/072/mkl ### install fftw2xf cd /opt/intel/Compiler/11.1/072/mkl/examples/fftw2xf make libem64t compiler=intel MKLROOT=/opt/intel/Compiler/11.1/072/mkl cd /opt/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 /opt/intel/Compiler/11.1/072/mkl/examples/fftw3xf and /opt/intel/Compiler/11.1/072/mkl/examples/fftw2xf. The include folder for these libraries are to be found in /opt/intel/Compiler/11.1/072/mkl/include/fftw