installation problem with OPENMPI and Gfortran 4.4.6
Tong Zhu
z5476... at gmail.com
Sat Apr 26 07:51:49 UTC 2014
Dear everyone,
I am compiling cp2k-2.5.1 on my workstation with redhat6.3 OS, openmpi-1.8
and gfortran 4.4.6
However, I encountered a confusing problem:
/localhome2/zt/fuckm/fmag/cp2k-omp-goto/makefiles/../src/dbcsr_lib/dbcsr_mm_cannon.F:2789.21:
!$OMP ATOMIC READ
1
Error: Unclassifiable OpenMP directive at (1)
make[1]: *** [dbcsr_mm_cannon.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/localhome2/zt/fuckm/fmag/cp2k-omp-goto/obj/Linux-x86-64-gfortran/ssmp'
make: *** [build] Error 2
Could you please help me to figure it out?
Thank you so much !!!!
Tong
My arch file Linux-x86-64-gfortran.ssmp is:
LD = gfortran
AR = ar -r
FFTW_INC = /localhome2/zt/fuckm/fmag/fftwomp/include
FFTW_LIB = /localhome2/zt/fuckm/fmag/fftwomp/lib
LIBINT_INC = /localhome2/zt/fuckm/fmag/libint/include/libint
LIBINT_LIB = /localhome2/zt/fuckm/fmag/libint/lib
LIBXC_INC = /localhome2/zt/fuckm/fmag/libxc/include
LIBXC_LIB = /localhome2/zt/fuckm/fmag/libxc/lib
GOTO_LIB = /localhome2/zt/fuckm/fmag/GotoBLAS2
SCALAP_LIB = /localhome2/zt/fuckm/fmag/scaomp/lib
OMP_INC = /localhome2/zt/fuckm/fmag/openmp/include
DFLAGS = -D__GFORTRAN -D__FFTSG -D__FFTW3 -D__LIBINT -D__LIBXC2 \
-D__LIBINT_MAX_AM=5
CPPFLAGS =
FCFLAGS = $(DFLAGS) -O2 -ffast-math -ffree-form -ffree-line-length-none\
-fopenmp -ftree-vectorize -funroll-loops\
-mtune=native\
-I$(OMP_INC) -I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC)
LDFLAGS = $(FCFLAGS) -static-libgfortran
LIBS = $(SCALAP_LIB)/libscalapack.a \
$(FFTW_LIB)/libfftw3.a \
$(FFTW_LIB)/libfftw3_threads.a \
$(FFTW_LIB)/libfftw3_omp.a \
$(LIBXC_LIB)/libxc.a \
$(LIBINT_LIB)/libderiv.a \
$(LIBINT_LIB)/libint.a \
$(GOTO_LIB)/libgoto2.a \
-lstdc++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20140426/fab0611a/attachment.htm>
More information about the CP2K-user
mailing list