Compilation error with openmp

Sandeep Kumar Reddy kuma... at gmail.com
Wed Jun 22 13:07:30 CEST 2011


Dear all,
              I try to compile cp2k with openmp with intel compilers. But it
is terminated with following error.


fortcom: Error:
/home/sandeep/software/cp2k-openmp/cp2k/makefiles/../src/fft_tools.F, line
1572: Syntax error, found IDENTIFIER 'COLLAPSE' when expecting one of:
PRIVATE FIRSTPRIVATE REDUCTION SHARED IF DEFAULT COPYIN NUM_THREADS
LASTPRIVATE ...
!$omp parallel do default(none) collapse(2) &
--------------------------------^
fortcom: Error:
/home/sandeep/software/cp2k-openmp/cp2k/makefiles/../src/fft_tools.F, line
1648: Syntax error, found IDENTIFIER 'COLLAPSE' when expecting one of:
PRIVATE FIRSTPRIVATE REDUCTION SHARED IF DEFAULT COPYIN NUM_THREADS
LASTPRIVATE ...
!$omp parallel do default(none) collapse(2) &
--------------------------------^
fortcom: Error:
/home/sandeep/software/cp2k-openmp/cp2k/makefiles/../src/fft_tools.F, line
2169: Syntax error, found IDENTIFIER 'COLLAPSE' when expecting one of:
PRIVATE FIRSTPRIVATE REDUCTION SHARED IF DEFAULT COPYIN NUM_THREADS
LASTPRIVATE ...
!$omp parallel do default(none) collapse(2) &
--------------------------------^
fortcom: Error:
/home/sandeep/software/cp2k-openmp/cp2k/makefiles/../src/fft_tools.F, line
2235: Syntax error, found IDENTIFIER 'COLLAPSE' when expecting one of:
PRIVATE FIRSTPRIVATE REDUCTION LASTPRIVATE ORDERED SCHEDULE
<END-OF-STATEMENT> ;
!$omp do collapse(2)
---------^
fortcom: Error:
/home/sandeep/software/cp2k-openmp/cp2k/makefiles/../src/fft_tools.F, line
2235: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( %
!$omp do collapse(2)
--------------------^
fortcom: Error:
/home/sandeep/software/cp2k-openmp/cp2k/makefiles/../src/fft_tools.F, line
2356: Syntax error, found IDENTIFIER 'COLLAPSE' when expecting one of:
PRIVATE FIRSTPRIVATE REDUCTION SHARED IF DEFAULT COPYIN NUM_THREADS
LASTPRIVATE ...
!$omp parallel do default(none) collapse(2) &
--------------------------------^
fortcom: Error:
/home/sandeep/software/cp2k-openmp/cp2k/makefiles/../src/fft_tools.F, line
2435: Syntax error, found IDENTIFIER 'COLLAPSE' when expecting one of:
PRIVATE FIRSTPRIVATE REDUCTION LASTPRIVATE ORDERED SCHEDULE
<END-OF-STATEMENT> ;
!$omp do collapse(2)


--------
---------

Following is the make file .....

INTEL_INC=/opt/intel/mkl/10.0.3.020/include
INTEL_LIB=/opt/intel/mkl/10.0.3.020/lib/em64t
FFT_INC= /opt/intel/mkl/10.0.3.020/include/fftw

CC       = cc
CPP      =
FC       = mpiifort -openmp
LD       = mpiifort  -openmp
AR       = ar -r
DFLAGS   = -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK
-D__FFTW3 -D__MKL
CPPFLAGS =
FCFLAGS  = $(DFLAGS) -I$(INTEL_INC) -I/opt/intel/impi/3.1/include/ -O3 -xW
-heap-arrays 64 -funroll-loops -fpp -free
FCFLAGS2 = $(DFLAGS) -I$(INTEL_INC) -O1 -xW -heap-arrays 64 -fpp -free
LDFLAGS  = $(FCFLAGS) -I$(INTEL_INC)
LIBS     = -I$(INTEL_INC) -L$(INTEL_LIB) -I$FFT_INC  -lmkl_scalapack_lp64
-lmkl_blacs_intelmpi_lp64 -lmkl_intel_lp64 \
  -lmkl_sequential -lmkl_core -lguide -lpthread -lmkl_em64t
-lfftw3xf_intel

OBJECTS_ARCHITECTURE = machine_intel.o


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

--------

I tried to find in the mailing list. But i couldn't get any solution.

Any suggestions ?

Thanks in advance.

Regards,
Sandeep Reddy
Molecular Simulations Lab,
JNCASR, India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20110622/e56ed6b3/attachment.html>


More information about the CP2K-user mailing list