Install Yambo on Ubuntu/LinuxMint with Intel compiler: Difference between revisions

From The Yambo Project
Jump to navigation Jump to search
(Created page with "The Intel compiler are freely available on Linux machines. From the Intel oneAPI page, download and install: [https://software.intel.com/content/www/us/en/develop/articles/on...")
 
No edit summary
Line 1: Line 1:
The Intel compiler are freely available on Linux machines.  
The Intel compiler are freely available on Linux machines.<br>
From the Intel oneAPI page, download and install: [https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#fortran Intel Fortran Compiler], [https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#inpage-nav-5-undefined Intel C++ Compiler], [https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#inpage-nav-10-undefined Intel MPI libraries] and [https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#inpage-nav-11-5 Intel MKL libraries].
From the Intel oneAPI page, download and install:<br>
- [https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#fortran Intel Fortran Compiler]
- [https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#inpage-nav-5-undefined Intel C++ Compiler]
- [https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#inpage-nav-10-undefined Intel MPI libraries]  
- [https://software.intel.com/content/www/us/en/develop/articles/oneapi-standalone-components.html#inpage-nav-11-5 Intel MKL libraries].





Revision as of 09:18, 12 April 2021

The Intel compiler are freely available on Linux machines.
From the Intel oneAPI page, download and install:
- Intel Fortran Compiler - Intel C++ Compiler - Intel MPI libraries - Intel MKL libraries.


source /opt/intel/oneapi/setvars.sh
export MKL_LIBS="-Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--end-group -liomp5 -lpthread -lm -ldl"
export MKL_INCLUDE="-I${MKLROOT}/include"
export MKL_SCALAPACK=" ${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a 
${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -Wl,--end-group -liomp5 -lpthread -lm -ldl"


./configure FC=mpiifort F77=mpiifort  --enable-open-mp --enable-par-linalg --enable-hdf5-par-io \
--with-blas-libs="$MKL_LIBS" --with-lapack-libs="$MKL_LAPACK" \
--with-fft-libs="$MKL_LIBS" --with-fft-includedir="$MKL_INCLUDE" \
--with-scalapack-libs="$MKL_SCALAPACK" --with-blacs-libs="$MKL_SCALAPACK" \
--enable-slepc-linalg