Skip to content

Instantly share code, notes, and snippets.

@ronert
Created May 24, 2013 18:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronert/5645576 to your computer and use it in GitHub Desktop.
Save ronert/5645576 to your computer and use it in GitHub Desktop.
export MKLROOT="/opt/intel/composer_xe_2013.3.171/mkl"
export MKL_LIB_PATH="/opt/intel/composer_xe_2013.3.171/mkl/lib"
export MKL=" -L${MKLROOT}/lib ${MKLROOT}/lib/libmkl_blas95_ilp64.a ${MKLROOT}/lib/libmkl_lapack95_ilp64.a -lmkl_intel_ilp64 -lmkl_intel_sequential -lmkl_core -lpthread -lm -lmkl_gf_ilp64"
export ICC_LIBS="/opt/intel/composer_xe_2013.3.171/mkl/lib"
export IFC_LIBS="/opt/intel/composer_xe_2013.3.171/compiler/lib/intel64"
export CC="icc -std=c99 -arch x86_64"
export CFLAGS="-g -O2 -fPIC -DPIC -DMKL_ILP64 -I${MKLROOT}/include -ip -mp -wd188"
export F77="ifort -arch x86_64"
export FFLAGS="-g -O2 -fPIC -I${MKLROOT}/include/intel64/ilp64 -I${MKLROOT}/include -ip -mp"
export CPICFLAGS="-fPIC -DPIC"
export FPICFLAGS="-fPIC"
export LDFLAGS=" -L$ICC_LIBS -L$IFC_LIBS -L/usr/local/lib -L${MKLROOT}/include/intel64/ilp64 -L,,-Bdirect,--hash-style=both,-Wl,-O1,--export-dynamic"
export CXX=icpc
export CXXFLAGS="-g -O2 -mp"
export FC="ifort -arch x86_64"
export FCFLAGS="-g -O2 -mp"
export OBJC="clang -arch x86_64"
export OBJCXX="clang++ -arch x86_64"
export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
./configure --with-blas="${MKL}" --with-lapack --with-aqua --with-system-zlib --enable-memory-profiling --enable-R-framework --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib --with-tcltk=/usr/local/lib --disable-openmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment