<div dir="ltr">Hi Iain,<br><br>Thanks a lot. It now works according to your suggestions.<br><br>Bests,<br>Zhaoyang<br><br>On Monday, August 29, 2016 at 5:19:12 PM UTC+8, IBethune wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Dear Zhaoyang,
<br>
<br>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:
<br>
<br><a href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fsoftware.intel.com%2Fen-us%2Farticles%2Fintel-mkl-link-line-advisor\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEeDLMY59OF3CfCgrCjFRZCTQ7n4w';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fsoftware.intel.com%2Fen-us%2Farticles%2Fintel-mkl-link-line-advisor\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEeDLMY59OF3CfCgrCjFRZCTQ7n4w';return true;">https://software.intel.com/en-<wbr>us/articles/intel-mkl-link-<wbr>line-advisor</a>
<br>
<br>Cheers
<br>
<br>- Iain
<br>
<br>--
<br>
<br>Iain Bethune
<br>Project Manager, EPCC
<br>
<br>Email: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Wr6F0m59AwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">ibe...@epcc.ed.ac.uk</a>
<br>Twitter: @IainBethune @PrimeGrid @CP2Kproject
<br>Web: <a href="http://www2.epcc.ed.ac.uk/~ibethuneTel/Fax" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww2.epcc.ed.ac.uk%2F~ibethuneTel%2FFax\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFFX2aa_LeyI8qZrXJ4SWGN4STQIA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww2.epcc.ed.ac.uk%2F~ibethuneTel%2FFax\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFFX2aa_LeyI8qZrXJ4SWGN4STQIA';return true;">http://www2.epcc.ed.ac.uk/~<wbr>ibethune
<br>Tel/Fax</a>: +44 (0)131 650 5201/6555
<br>Mob: +44 (0)7598317015
<br>Addr: 2404 JCMB, The King's Buildings, Peter Guthrie Tait Road, Edinburgh, EH9 3FD
<br>
<br>> On 27 Aug 2016, at 07:58, Zhaoyang Zheng <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Wr6F0m59AwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">zheng...@gmail.com</a>> wrote:
<br>>
<br>> Dear all,
<br>>
<br>> When I'm trying to compile CP2K 3.0 by using intel mpi and mkl, one error occur like this:
<br>>
<br>> /home-gg/compiler/intel2016/<wbr>compilers_and_libraries_2016.<wbr>3.210/linux/mkl/lib/intel64/<wbr>libmkl_blacs_intelmpi_lp64.a(<wbr>mkl_blacs_memory.o): In function `mkl_blacs_malloc':
<br>> mkl_blacs_memory.c.text+0x8d): undefined reference to `mkl_serv_iface_malloc'
<br>> mkl_blacs_memory.c.text+0xec): undefined reference to `mkl_serv_iface_free'
<br>> /home-gg/compiler/intel2016/<wbr>compilers_and_libraries_2016.<wbr>3.210/linux/mkl/lib/intel64/<wbr>libmkl_blacs_intelmpi_lp64.a(<wbr>mklmpi-impl.o): In function `MKLMPI_Type_create_struct':
<br>> mklmpi-impl.c.text+0x3eae): undefined reference to `MKL_calloc'
<br>> mklmpi-impl.c.text+0x3ec0): undefined reference to `MKL_calloc'
<br>> /home-gg/compiler/intel2016/<wbr>compilers_and_libraries_2016.<wbr>3.210/linux/mkl/lib/intel64/<wbr>libmkl_blacs_intelmpi_lp64.a(<wbr>mklmpi-impl.o): In function `MKLMPI_Waitall':
<br>> mklmpi-impl.c.text+0x4768): undefined reference to `MKL_calloc'
<br>> mklmpi-impl.c.text+0x4994): undefined reference to `MKL_calloc'
<br>> /home-gg/compiler/intel2016/<wbr>compilers_and_libraries_2016.<wbr>3.210/linux/mkl/lib/intel64/<wbr>libmkl_blacs_intelmpi_lp64.a(<wbr>mklmpi-impl.o): In function `MKLMPI_Waitany':
<br>> mklmpi-impl.c.text+0x4de7): undefined reference to `MKL_calloc'
<br>> /home-gg/compiler/intel2016/<wbr>compilers_and_libraries_2016.<wbr>3.210/linux/mkl/lib/intel64/<wbr>libmkl_blacs_intelmpi_lp64.a(<wbr>mkl_blacs_memory.o): In function `mkl_blacs_malloc':
<br>> mkl_blacs_memory.c.text+0x8d): undefined reference to `mkl_serv_iface_malloc'
<br>> mkl_blacs_memory.c.text+0xec): undefined reference to `mkl_serv_iface_free'
<br>> /home-gg/compiler/intel2016/<wbr>compilers_and_libraries_2016.<wbr>3.210/linux/mkl/lib/intel64/<wbr>libmkl_blacs_intelmpi_lp64.a(<wbr>mklmpi-impl.o): In function `MKLMPI_Type_create_struct':
<br>> mklmpi-impl.c.text+0x3eae): undefined reference to `MKL_calloc'
<br>> mklmpi-impl.c.text+0x3ec0): undefined reference to `MKL_calloc'
<br>> /home-gg/compiler/intel2016/<wbr>compilers_and_libraries_2016.<wbr>3.210/linux/mkl/lib/intel64/<wbr>libmkl_blacs_intelmpi_lp64.a(<wbr>mklmpi-impl.o): In function `MKLMPI_Waitall':
<br>> mklmpi-impl.c.text+0x4768): undefined reference to `MKL_calloc'
<br>> mklmpi-impl.c.text+0x4994): undefined reference to `MKL_calloc'
<br>> /home-gg/compiler/intel2016/<wbr>compilers_and_libraries_2016.<wbr>3.210/linux/mkl/lib/intel64/<wbr>libmkl_blacs_intelmpi_lp64.a(<wbr>mklmpi-impl.o): In function `MKLMPI_Waitany':
<br>> mklmpi-impl.c.text+0x4de7): undefined reference to `MKL_calloc'
<br>> make[3]: *** [/home-gg/users/nscc1657_ZZY/<wbr>software/cp2k-3.0/exe/Linux-<wbr>x86-64-intel-host/cp2k.popt] 错误 1
<br>> make[3]: *** 正在等待未完成的任务....
<br>> make[3]: *** [/home-gg/users/nscc1657_ZZY/<wbr>software/cp2k-3.0/exe/Linux-<wbr>x86-64-intel-host/cp2k_shell.<wbr>popt] 错误 1
<br>> make[2]: *** [all] 错误 2
<br>> make[1]: *** [popt] 错误 2
<br>> make: *** [all] 错误 2
<br>>
<br>> Can anyone help me solve this problem? Thanks.
<br>>
<br>> Zhaoyang
<br>>
<br>> --
<br>> You received this message because you are subscribed to the Google Groups "cp2k" group.
<br>> To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Wr6F0m59AwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp2k+uns...@googlegroups.<wbr>com</a>.
<br>> To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Wr6F0m59AwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>.
<br>> Visit this group at <a href="https://groups.google.com/group/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://groups.google.com/<wbr>group/cp2k</a>.
<br>> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.
<br>
<br>
<br>--
<br>The University of Edinburgh is a charitable body, registered in
<br>Scotland, with registration number SC005336.
<br>
<br></blockquote></div>