[CP2K-user] [CP2K:13094] installing cp2k-7.1 with gpu shows this file requires compiler and library support for the ISO C++ 2011 standard.

Krack Matthias (PSI) matthi... at psi.ch
Thu Apr 9 10:16:23 UTC 2020


Did you try to add the flag -std=c++11 or -std=gnu++11 also to the CFLAGS?

M.

From: cp... at googlegroups.com <cp... at googlegroups.com> On Behalf Of egbertchang
Sent: Donnerstag, 9. April 2020 10:55
To: cp2k <cp... at googlegroups.com>
Subject: [CP2K:13094] installing cp2k-7.1 with gpu shows this file requires compiler and library support for the ISO C++ 2011 standard.

Recently , I tried to install cp2k-7.1 with gpu.

intel2017u4

cuda9.1

but the information showed :
gcc520/include/c++/5.2.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

there is my file
make -j 32   ARCH=Linux-x86-64-intel VERSION=popt

Linux-x86-64-intel.popt

LIBXSMM  = $HOME/soft/cp2k-7.1-need/libxsmm
LIBXC    = $HOME/soft/cp2k-7.1-need/libxc/intel-hsw
LIBINT   = $HOME/soft/cp2k-7.1-need/libint/intel-skx
LIBELPA  = $HOME/soft/cp2k-7.1-need/elpa/intel-skx-omp

NVCC     = nvcc
CC       = cc
FC       = mpiifort
LD       = mpiifort
CXX      = g++
AR       = ar -r
NVFLAGS  = --std=c++11  --cuda -keep --dryrun
DFLAGS   = -D__MKL -D__FFTW3 -D__LIBXSMM \
           -D__parallel -D__SCALAPACK \
           -D__ELPA=201911 \
           -D__LIBXC \
           -D__LIBINT  \
           -D__MAX_CONTR=4
DFLAGS  += -D__ACC -D__DBCSR_ACC -D__PW_CUDA -D__HAS_PATCHED_CUFFT_70
CFLAGS   = $(DFLAGS) -O2
FCFLAGS  = $(DFLAGS) -O2 -funroll-loops -fpp -free -qopenmp -auto
GPUVER = V100

FCFLAGS += -fp-model precise
FCFLAGS += -g -traceback
FCFLAGS += -I${MKLROOT}/include -I${MKLROOT}/include/fftw
FCFLAGS += -I$(LIBXSMM)/include
FCFLAGS += -I$(LIBXC)/include
FCFLAGS += -I$(LIBINT)/include
FCFLAGS += -I$(LIBELPA)/include/elpa_openmp-2019.11.001/modules -I$(LIBELPA)/include/elpa_openmp-2019.11.001/elpa
LDFLAGS  = $(FCFLAGS) -static-intel
LDFLAGS_C = $(FCFLAGS) -static-intel -nofor_main
LIBS     = -L$(LIBELPA)/lib -lelpa
MKL_LIB  = ${MKLROOT}/lib/intel64
LIBS    += $(MKL_LIB)/libmkl_scalapack_lp64.a -Wl,--start-group \
           $(MKL_LIB)/libmkl_intel_lp64.a ${MKL_LIB}/libmkl_sequential.a \
           $(MKL_LIB)/libmkl_core.a \
           ${MKL_LIB}/libmkl_blacs_intelmpi_lp64.a -Wl,--end-group \
           -lpthread -lm
LIBS    += -L$(LIBXSMM)/lib -lxsmmf -lxsmm -ldl
LIBS    += -L$(LIBXC)/lib -lxcf03 -lxc
LIBS    += -L$(LIBINT)/lib -lint2 -lstdc++
LIBS    += -lcudart -lcublas -lcufft -lnvrtc -lstdc++ -lcuda

does my popt file or the enivorment have some mistakes?
Thanks in advance for your assistance!

--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp... at googlegroups.com<mailto:cp... at googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/78a99a91-1baa-4377-a667-39cd327bb9e4%40googlegroups.com<https://groups.google.com/d/msgid/cp2k/78a99a91-1baa-4377-a667-39cd327bb9e4%40googlegroups.com?utm_medium=email&utm_source=footer>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20200409/aaf31470/attachment.htm>


More information about the CP2K-user mailing list