#!/bin/bash # Assumes icc is installed. Run this script to compile both intel fftw2, fftw3 libraries. It should install fftw3 and fftw2 in /share/apps/intel/Compiler/11.1/072/mkl ##### # 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 or add the path for icc in root's .bashrc, then rerun this script again. # ##### ### install fftw3xf cd /share/apps/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf make libem64t compiler=gnu MKLROOT=/share/apps/intel/Compiler/11.1/072/mkl ### install fftw2xf cd /share/apps/intel/Compiler/11.1/072/mkl/interfaces/fftw2xf make libem64t compiler=gnu MKLROOT=/share/apps/intel/Compiler/11.1/072/mkl ### install fftw3xc cd /share/apps/intel/Compiler/11.1/072/mkl/interfaces/fftw3xc make libem64t compiler=gnu MKLROOT=/share/apps/intel/Compiler/11.1/072/mkl ### install fftw2xc cd /share/apps/intel/Compiler/11.1/072/mkl/interfaces/fftw2xc make libem64t compiler=gnu MKLROOT=/share/apps/intel/Compiler/11.1/072/mkl ## Note that the intel versions of fftw2/fftw3 source files are kept in /share/apps/intel/Compiler/11.1/072/mkl/interfaces/fftw2xf. The include folder for these libraries are to be found in /share/apps/intel/Compiler/11.1/072/mkl/include/fftw