[CP2K:8103] CP2k 3.0 compile error with mkl and intel mpi

Iain Bethune ibet... at epcc.ed.ac.uk
Mon Aug 29 09:19:09 UTC 2016


Dear Zhaoyang,

Looks like you got some of the linker / library flags wrong when trying to link to MKL BLACS.  The best suggestion in this case is to use Intel’s MKL Link Line Advisor, which will give you the correct set (and correct order) of linker options to paste into your CP2K arch file:

https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor

Cheers

- Iain

--

Iain Bethune
Project Manager, EPCC

Email: ibet... at epcc.ed.ac.uk
Twitter: @IainBethune @PrimeGrid @CP2Kproject
Web: http://www2.epcc.ed.ac.uk/~ibethune
Tel/Fax: +44 (0)131 650 5201/6555
Mob: +44 (0)7598317015
Addr: 2404 JCMB, The King's Buildings, Peter Guthrie Tait Road, Edinburgh, EH9 3FD

> On 27 Aug 2016, at 07:58, Zhaoyang Zheng <zhengzh... at gmail.com> wrote:
> 
> Dear all,
> 
> When I'm trying to compile CP2K 3.0 by using intel mpi and mkl, one error occur like this:
> 
> /home-gg/compiler/intel2016/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a(mkl_blacs_memory.o): In function `mkl_blacs_malloc':
> mkl_blacs_memory.c.text+0x8d): undefined reference to `mkl_serv_iface_malloc'
> mkl_blacs_memory.c.text+0xec): undefined reference to `mkl_serv_iface_free'
> /home-gg/compiler/intel2016/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a(mklmpi-impl.o): In function `MKLMPI_Type_create_struct':
> mklmpi-impl.c.text+0x3eae): undefined reference to `MKL_calloc'
> mklmpi-impl.c.text+0x3ec0): undefined reference to `MKL_calloc'
> /home-gg/compiler/intel2016/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a(mklmpi-impl.o): In function `MKLMPI_Waitall':
> mklmpi-impl.c.text+0x4768): undefined reference to `MKL_calloc'
> mklmpi-impl.c.text+0x4994): undefined reference to `MKL_calloc'
> /home-gg/compiler/intel2016/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a(mklmpi-impl.o): In function `MKLMPI_Waitany':
> mklmpi-impl.c.text+0x4de7): undefined reference to `MKL_calloc'
> /home-gg/compiler/intel2016/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a(mkl_blacs_memory.o): In function `mkl_blacs_malloc':
> mkl_blacs_memory.c.text+0x8d): undefined reference to `mkl_serv_iface_malloc'
> mkl_blacs_memory.c.text+0xec): undefined reference to `mkl_serv_iface_free'
> /home-gg/compiler/intel2016/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a(mklmpi-impl.o): In function `MKLMPI_Type_create_struct':
> mklmpi-impl.c.text+0x3eae): undefined reference to `MKL_calloc'
> mklmpi-impl.c.text+0x3ec0): undefined reference to `MKL_calloc'
> /home-gg/compiler/intel2016/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a(mklmpi-impl.o): In function `MKLMPI_Waitall':
> mklmpi-impl.c.text+0x4768): undefined reference to `MKL_calloc'
> mklmpi-impl.c.text+0x4994): undefined reference to `MKL_calloc'
> /home-gg/compiler/intel2016/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a(mklmpi-impl.o): In function `MKLMPI_Waitany':
> mklmpi-impl.c.text+0x4de7): undefined reference to `MKL_calloc'
> make[3]: *** [/home-gg/users/nscc1657_ZZY/software/cp2k-3.0/exe/Linux-x86-64-intel-host/cp2k.popt] 错误 1
> make[3]: *** 正在等待未完成的任务....
> make[3]: *** [/home-gg/users/nscc1657_ZZY/software/cp2k-3.0/exe/Linux-x86-64-intel-host/cp2k_shell.popt] 错误 1
> make[2]: *** [all] 错误 2
> make[1]: *** [popt] 错误 2
> make: *** [all] 错误 2
> 
> Can anyone help me solve this problem? Thanks.
> 
> Zhaoyang 
> 
> -- 
> You received this message because you are subscribed to the Google Groups "cp2k" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns... at googlegroups.com.
> To post to this group, send email to cp... at googlegroups.com.
> Visit this group at https://groups.google.com/group/cp2k.
> For more options, visit https://groups.google.com/d/optout.


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




More information about the CP2K-user mailing list