#!/bin/bash # Run this script as root to install intel's fftw2 and fftw3 libraries from intel ifort compiler version 11.1/072 # Mandatory requirement: # # 1. Assumes mkl bundled in ifort version 11.1.072 is already installed in /share/apps/intel/Compiler/11.1/072/mkl. # 2. Assume icc is already installed. By default icc is installed in /share/apps/intel/Compiler/11.0/081/bin. ## fftw3 and fftw2 libraries would be found in /share/apps/intel/Compiler/11.1/072/mkl after successful installation # # For CENTOS7, you may need the library file libstdc++.so.5 for this script compile fortran fftw using icc 11.0.081. it could be made available by yum install compat-libstdc++-33 ##### ### 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 make libem64t compiler=intel 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 make libem64t compiler=intel MKLROOT=/share/apps/intel/Compiler/11.1/072/mkl ### 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 make libem64t compiler=intel MKLROOT=/share/apps/intel/Compiler/11.1/072/mkl ln -s /share/apps/intel/Compiler/11.1/072/mkl/interfaces/fftw3xf/libfftw3xf_intel.a /share/apps/intel/Compiler/11.1/072/mkl/lib/em64t/ ### 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 make libem64t compiler=intel MKLROOT=/share/apps/intel/Compiler/11.1/072/mkl ln -s /share/apps/intel/Compiler/11.1/072/mkl/interfaces/fftw3xc/libfftw3xc_intel.a /share/apps/intel/Compiler/11.1/072/mkl/lib/em64t/ ## 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