Many errors with Intel 2017 compilers in test suite (popt, 3.0 and 4.1)

Andreas Glöss andreas... at gmail.com
Mon May 8 11:08:14 UTC 2017


Hi Stefan,

This line:
  #if defined (__INTEL_COMPILER) && defined (__MKL) && defined (__FFTW3) 

and the following just ensure that we are using a thread-safe MKL. Since 
MKL 2011.02, this should be fine. Therefore, the following (schematic) lib, 
inc, preproc and compiler flag lines should do the trick (for psmp version).

LIBS     = -Wl,--start-group \
             ${FFTW_LIB}/libfftw3.a \
             ${FFTW_LIB}/libfftw3_omp.a \
           -Wl,--end-group
LIBS    += ${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a \
           -Wl,--start-group \
             ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a \
             ${MKLROOT}/lib/intel64/libmkl_sequential.a \
             ${MKLROOT}/lib/intel64/libmkl_core.a \
             ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a \
           -Wl,--end-group \
           -lpthread -lm -ldl

INCS     = -I${FFTW_INCLUDE}
INCS    += -I${MKLROOT}/include

DFLAGS   = -D__parallel -D__SCALAPACK -D__MPI_VERSION=3 \
           -D__FFTW3 \
           -D__HAS_ISO_C_BINDING

CFLAGS += $(INCS)
FCFLAGS += $(INCS)
LDFLAGS += $(INCS)

... plus all the rest of your original ARCH file ...

Best regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20170508/4b00e18d/attachment.htm>


More information about the CP2K-user mailing list