compile error in cp2k 2.5 ssmp and psmp with intel compiler

Zhengyi Zhang zyzha... at gmail.com
Fri Mar 14 18:14:22 UTC 2014


Hi,

I have troubles when installing ssmp and psmp with intel compiler.

cp2k version: 2.5

1. ssmp
ifort version: 12.0.4

My Linux-x86-64-intel.ssmp:

INTEL_MKL = /opt/intel/composerxe-2011.4.191/mkl
INTEL_INC = $(INTEL_MKL)/include/fftw
INTEL_LIB = $(INTEL_MKL)/lib/intel64

CC       = cc
CPP      = 
FC       = ifort -FR -openmp -O0
LD       = ifort -FR -openmp -O0
AR       = ar -r
DFLAGS   = -D__INTEL -D__FFTSG -D__FFTW3
CPPFLAGS = -C -traditional $(DFLAGS) -I$(INTEL_INC)
FCFLAGS  = $(DFLAGS) -I$(INTEL_INC) 
LDFLAGS  = $(FCFLAGS)

LIBS     = -L$(INTEL_LIB) \
   $(INTEL_LIB)/libfftw3xf_intel.a \
   $(INTEL_LIB)/libmkl_blas95_lp64.a\
           $(INTEL_LIB)/libmkl_lapack95_lp64.a \
 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm


Error:
ifort 
-F/homes/zhang701/cp2k/makefiles/../src/dbcsr_lib/dbcsr_mm_cannon.F(2789): 
error #5082: Syntax error, found IDENTIFIER 'READ' when expecting one of: 
<END-OF-STATEMENT> ;
!$OMP ATOMIC READ
-----------------^
/homes/zhang701/cp2k/makefiles/../src/dbcsr_lib/dbcsr_mm_cannon.F(2791): 
error #7926: Form of assignment statement following !$OMP ATOMIC directive 
is improper.   [THREADS_FINISHED]
               threads_finished_read=threads_finished
---------------------------------^

2. psmp
My Linux-x86-64-intel.psmp:

INTEL_MKL = /opt/intel/composerxe-2011.4.191/mkl
INTEL_INC = $(INTEL_MKL)/include/fftw
INTEL_LIB = $(INTEL_MKL)/lib/intel64

CC       = cc
CPP      = 
FC       = mpiifort -openmp -openmp-threadprivate=compat
LD       = mpiifort -openmp -openmp-threadprivate=compat
AR       = ar -r
DFLAGS   = -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK 
-D__FFTW3
CPPFLAGS = 
FCFLAGS  = $(DFLAGS) -I$(INTEL_INC) -O2 -xW -funroll-loops -fpp -free
FCFLAGS2 = $(DFLAGS) -I$(INTEL_INC) -O1 -xW -heap-arrays 64 -fpp -free
LDFLAGS  = $(FCFLAGS) -I$(INTEL_INC)

LIBS     = -L$(INTEL_LIB) \
   $(INTEL_LIB)/libmkl_scalapack_lp64.a \
           $(INTEL_LIB)/libmkl_blacs_lp64.a \
   $(INTEL_LIB)/libfftw3xf_intel.a \
   $(INTEL_LIB)/libmkl_blas95_lp64.a\
           $(INTEL_LIB)/libmkl_lapack95_lp64.a \
-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm

graphcon.o: graphcon.F
$(FC) -c $(FCFLAGS2) $<


Error:
/homes/zhang701/cp2k/makefiles/../src/dbcsr_lib/dbcsr_mm_cannon.F(2789): 
error #5082: Syntax error, found IDENTIFIER 'READ' when expecting one of: 
<END-OF-STATEMENT> ;
!$OMP ATOMIC READ
---------------- ^
/homes/zhang701/cp2k/makefiles/../src/dbcsr_lib/dbcsr_mm_cannon.F(2791): 
error #7926: Form of assignment statement following !$OMP ATOMIC directive 
is improper.   [THREADS_FINISHED]
               threads_finished_read=threads_finished
-------------------------------------^
 
How could I fix the problems? 

Thanks.

Zhengyi Zhang 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20140314/f3306d8d/attachment.htm>


More information about the CP2K-user mailing list