[SOLVED] atompaw compilation

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
ppy
Posts: 24
Joined: Wed May 19, 2010 6:28 pm

[SOLVED] atompaw compilation

Post by ppy » Wed May 19, 2010 6:47 pm

I tried to compile atompaw with intel 11.1 compiler but it ends with this error message:

anderson_realmix.f90:(.text+0x122c): undefined reference to `dgesdd_'
basis.o: In function `basis_mp_diagonalizer_':
basis.f90:(.text+0x36720): undefined reference to `dsyev_'
basis.f90:(.text+0x3745c): undefined reference to `dsyev_'
make: *** [atompaw] Erreur 1

my makefile is the following:
LIBDIR=/opt/intel/Compiler/11.1/064/mkl/lib/em64t
LIBS= -L$(LIBDIR) -lmkl -lmkl_lapack -lmkl_em64t -lguide -lpthread -lm
F90 = /opt/intel/Compiler/11.1/064/bin/intel64/ifort
F90FLAGS = -O3
#F90FLAGS = -O3 -tpp7 / -g -O2 -O2 -tpp7 -xW -mp -static
LDFLAGS = $(F90FLAGS)

I am not sure if all the needed libraries are in the directory "/opt/intel/Compiler/11.1/064/mkl/lib/em64t", below is the list of the libraries in this directory:
libmkl_avx.so libmkl_core.a libmkl_intel_sp2dp.so libmkl_scalapack_lp64.so
libmkl_blacs_ilp64.a libmkl_core.so libmkl_intel_thread.a libmkl_sequential.a
libmkl_blacs_intelmpi_ilp64.a libmkl_def.so libmkl_intel_thread.so libmkl_sequential.so
libmkl_blacs_intelmpi_ilp64.so libmkl_gf_ilp64.a libmkl_lapack95_ilp64.a libmkl_solver_ilp64.a
libmkl_blacs_intelmpi_lp64.a libmkl_gf_ilp64.so libmkl_lapack95_lp64.a libmkl_solver_ilp64_sequential.a
libmkl_blacs_intelmpi_lp64.so libmkl_gf_lp64.a libmkl_lapack.so libmkl_solver_lp64.a
libmkl_blacs_lp64.a libmkl_gf_lp64.so libmkl_mc3.so libmkl_solver_lp64_sequential.a
libmkl_blacs_openmpi_ilp64.a libmkl_gnu_thread.a libmkl_mc.so libmkl_vml_avx.so
libmkl_blacs_openmpi_lp64.a libmkl_gnu_thread.so libmkl_p4n.so libmkl_vml_def.so
libmkl_blacs_sgimpt_ilp64.a libmkl_intel_ilp64.a libmkl_pgi_thread.a libmkl_vml_mc2.so
libmkl_blacs_sgimpt_lp64.a libmkl_intel_ilp64.so libmkl_pgi_thread.so libmkl_vml_mc3.so
libmkl_blas95_ilp64.a libmkl_intel_lp64.a libmkl_scalapack_ilp64.a libmkl_vml_mc.so
libmkl_blas95_lp64.a libmkl_intel_lp64.so libmkl_scalapack_ilp64.so libmkl_vml_p4n.so
libmkl_cdft_core.a libmkl_intel_sp2dp.a libmkl_scalapack_lp64.a locale

I don't know if there are any missing libraries here?

I hope someone will be able to help me.
Thanks a lot,

Best Regards

ppy

dcaliste
Posts: 44
Joined: Thu Oct 22, 2009 9:15 am
Contact:

Re: atompaw compilation

Post by dcaliste » Thu May 20, 2010 10:13 am

Hello,

Giving the directory with the libraries there through the -L option is not sufficient to link. The -l (small L) are required to indeed give the libraries to link with. Here I guess some MKL are missing in -l.

To know what to link with when using the juggle of MKL, I advice to use the Intel web page:
http://software.intel.com/en-us/article ... e-advisor/ that can give the -l that are required depending on the architecture you want to run on.

ppy
Posts: 24
Joined: Wed May 19, 2010 6:28 pm

Re: atompaw compilation

Post by ppy » Wed Jun 30, 2010 7:12 pm

Thanks a lot !
It's working now.
Cheers

Locked