Skip to content

Instantly share code, notes, and snippets.

@bonfus
Created June 12, 2017 13:31
Show Gist options
  • Save bonfus/f7ca44adfb450684b9f4892a036e31f2 to your computer and use it in GitHub Desktop.
Save bonfus/f7ca44adfb450684b9f4892a036e31f2 to your computer and use it in GitHub Desktop.
Compile QE+ELPA

ELPA (2016.11.001.pre) configure&compile command:

module load intel mkl intelmpi
./configure CC=mpiicc FC=mpiifort SCALAPACK_LDFLAGS="-L$MKL_HOME/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_intelmpi_lp64 -lpthread -lm -Wl,-rpath,$MKL_HOME/lib/intel64" SCALAPACK_FCFLAGS="-L$MKL_HOME/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_intelmpi_lp64 -lpthread -lm -I$MKL_HOME/include/intel64/lp64" --enable-openmp --with-avx-optimization
make

QE make.inc relevant sections (everything else should be set by ./configure, add -axMIC-AVX512 if needed):

DFLAGS         =   -D__OPENMP -D__INTEL -D__DFTI -D__MPI -D__SCALAPACK  -D__ELPA -D__EXX_ACE -D__ELPA_2016
CFLAGS         = -O3 $(DFLAGS) $(IFLAGS) -axMIC-AVX512
F90FLAGS       = $(FFLAGS) -nomodule -qopenmp -fpp $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
FFLAGS         = -O2 -assume byterecl -g -traceback -qopenmp -axMIC-AVX512
BLAS_LIBS      = -L/cineca/prod/opt/compilers/intel/pe-xe-2017/binary/mkl/lib/intel64 -lmkl_intel_lp64  -lmkl_intel_thread -lmkl_core
ELPA_LIBS_SWITCH = enabled
SCALAPACK_LIBS = $(TOPDIR)/ELPA/libelpa_openmp.a -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64 

ELPA must reside in $(TOPDIR)/ELPA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment