Difference between revisions of "CP2K compiling with Intel"

From iRASPA
Jump to: navigation, search
m (preparation)
(preparation)
Line 9: Line 9:
 
  source /opt/intel/compilers_and_libraries_2020/linux/bin/compilervars.sh intel64
 
  source /opt/intel/compilers_and_libraries_2020/linux/bin/compilervars.sh intel64
 
  source /opt/intel/compilers_and_libraries_2020/linux/mkl/bin/mklvars.sh intel64
 
  source /opt/intel/compilers_and_libraries_2020/linux/mkl/bin/mklvars.sh intel64
  export CC=icc
+
export AR="xiar"
  export CXX=icpc
+
export FC="ifort"
  export F77=ifort
+
  export CC="icc"
  export FC=ifort
+
  export CXX="icpc"
 +
  export F77=${FC}
 +
  export F90=${FC}
  
 
  ==== Gsl ====
 
  ==== Gsl ====

Revision as of 08:59, 26 May 2020

Compiling

Compiling subpackages

Serial

preparation

source /opt/intel/compilers_and_libraries_2020/linux/bin/compilervars.sh intel64
source /opt/intel/compilers_and_libraries_2020/linux/mkl/bin/mklvars.sh intel64
export AR="xiar"
export FC="ifort"
export CC="icc"
export CXX="icpc"
export F77=${FC}
export F90=${FC}
==== Gsl ====

Reduced optimization to "-O1", but with intel-compiler still fails LinAlg-unit test

wget http://gnu.askapache.com/gsl/gsl-2.6.tar.gz
tar -zxvf gsl-2.6.tar.gz
 ./configure --prefix=/usr/local CC=icc FC=ifort CXX=icpc FCFLAGS="-O1 -xcore-avx2" CFLAGS="-O1 -xcore-avx2" CXXFLAGS="-O1 -xcore-avx2" --enable-shared=no
make -j 16
make check

Libint2

Reduced optimization to "-O2"

wget https://github.com/cp2k/libint-cp2k/releases/download/v2.6.0/libint-v2.6.0-cp2k-lmax-4.tgz
wget https://github.com/cp2k/libint-cp2k/releases/download/v2.6.0/libint-v2.6.0-cp2k-lmax-5.tgz
wget https://github.com/cp2k/libint-cp2k/releases/download/v2.6.0/libint-v2.6.0-cp2k-lmax-6.tgz
wget https://github.com/cp2k/libint-cp2k/releases/download/v2.6.0/libint-v2.6.0-cp2k-lmax-7.tgz
tar -zxvf libint-v2.6.0-cp2k-lmax-5.tgz
cd libint-v2.6.0-cp2k-lmax-5
./configure --prefix=/usr/local CC=icc FC=ifort CXX=icpc FCFLAGS="-O2 -xcore-avx2" CFLAGS="-O2 -xcore-avx2" CXXFLAGS="-O2 -xcore-avx2" --enable-shared=no --enable-fortran --with-cxx-optflags="-O2 -xcore-avx2"
make -j 24
make -j 24 check

all tests ok

sudo make install
sudo make install_fortran

/usr/local/lib/libint2