Re: 回复: [CP2K:3031] psmp build - error with Intel compiler
Ondrej Marsalek
ondrej.... at gmail.com
Thu Jan 6 09:58:24 UTC 2011
Hi,
that looks like you are missing the -openmp flag in your compile
options, you only have it in the linker variable. Are you sure you are
getting a threaded build?
Ondrej
On Thu, Jan 6, 2011 at 04:16, shoutian sun <sunshou... at yahoo.com.cn> wrote:
> Hi,
> This is mine makefile. It works fine.
>
> Intel Compiler 11.1.072
> Intel mkl 10.0.5.025
>
> INTEL_INC=/opt/intel/Compiler/11.1/072/mkl/include
> FFTW3_INC=/ds19/zfliu/stsun/fftw322/include
>
> CC = cc
> CPP =
> FC = mpif90 -FR
> #FC = mpif90
> LD = mpif90 -i_dynamic -openmp
> AR = ar -r
> #DFLAGS = -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK
> -D__FFTW3
> DFLAGS = -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -D__FFTW3
> -D__LIBINT
> CPPFLAGS = -C -traditional $(DFLAGS) -I$(INTEL_INC)
> FCFLAGS = $(DFLAGS) -I$(INTEL_INC) -I$(FFTW3_INC) -O2 -xW -heap-arrays 64
> -funroll-loops -fpp -free
> FCFLAGS2 = $(DFLAGS) -I$(INTEL_INC) -I$(FFTW3_INC) -O1 -xW -heap-arrays 64
> -funroll-loops -fpp -free
> LDFLAGS = $(FCFLAGS) -I$(INTEL_INC) -L/opt/intel/mkl/10.0.5.025/lib/em64t
> #
> LIBS = -L/opt/intel/mkl/10.0.5.025/lib/em64t -lmkl_scalapack -lmkl_em64t
> -lmkl_blacs_openmpi_lp64 -lguide -lpthread -lstdc++\
> /ds19/zfliu/stsun/fftw322/lib/libfftw3.a \
> /ds19/zfliu/stsun/libint114/lib/libderiv.a \
> /ds19/zfliu/stsun/libint114/lib/libint.a
>
> OBJECTS_ARCHITECTURE = machine_intel.o
>
>
> graphcon.o: graphcon.F
> $(FC) -c $(FCFLAGS2) $<
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "cp2k" group.
> To post to this group, send email to cp... at googlegroups.com.
> To unsubscribe from this group, send email to
> cp2k+uns... at googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cp2k?hl=en.
>
More information about the CP2K-user
mailing list