<div dir="ltr">Thank you Apsi for helping out!<br><br>Indeed both libraries are required in case of using the Fortran module.<br><br>Here is CP2K's install script showing this as well:<br>https://github.com/cp2k/cp2k/blob/master/cp2k/tools/toolchain/scripts/install_libxsmm.sh#L84<br><br>Hans<br><br>Am Montag, 3. April 2017 18:21:19 UTC+2 schrieb Ari Paavo Seitsonen:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div><div><div><div>Dear Davide,<br><br></div>  In the recent versions of libXSMM one needs two libraries:<br><br>#> nm /sw/target/intel/lib/libxsmm/<wbr>libxsmm-20160831_gcc-5.4.0/<wbr>lib/libxsmmf.a | grep -i dmmav<br>#> 0000000000002500 T __libxsmm_MOD_libxsmm_<wbr>dmmavailable<br><br></div>Please try adding /ichec/home/users/davide/lib/<wbr>libxsmm.git/tags/1.6/lib/<wbr>libxsmmf.a in your arch file; I have these two libraries (also as static, with explicit path to the lib*.a files) as<br><br>             ...<br>             $(LIBXSMM_PATH)/lib/libxsmm.a \<br>             $(LIBXSMM_PATH)/lib/libxsmmf.a \<br>             ...<br><br></div>    Greetings from Paris,<br><br></div>       apsi<br><div><div><div><br></div></div></div></div><div><br><div class="gmail_quote">2017-04-03 17:46 GMT+02:00 David T <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="GxoUDVw0BAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">amazi...@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear All<br><br>sorry for the not really interesting post but since this morning I am struggling trying to have CP2K compiled with libxsmm.<br><br>I managed to have it compiled with mkl, and fftw but somehow I cannot figure out what I am doing wrong with libxsmm, I tried several configuration but I am lost<br><br>Below my last arch file attempt, as you can see I also tried to put the path explicitly but still I am obtain this error:<br><br>/ichec/home/users/davide/scr/<wbr>cp2k/cp2k/lib/test/xsmm/<wbr>libdbcsrmm.a(dbcsr_mm_hostdrv.<wbr>o): In function `dbcsr_mm_hostdrv_mp_dbcsr_mm_<wbr>hostdrv_process_':<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x1c40): undefined reference to `libxsmm_mp_libxsmm_<wbr>dmmdispatch_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x1c64): undefined reference to `libxsmm_mp_libxsmm_<wbr>dmmavailable_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x1d28): undefined reference to `libxsmm_mp_libxsmm_dmmcall_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x1d9a): undefined reference to `libxsmm_mp_libxsmm_dmmcall_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x1fc0): undefined reference to `libxsmm_mp_libxsmm_dgemm_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x616d): undefined reference to `libxsmm_mp_libxsmm_<wbr>smmdispatch_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x6191): undefined reference to `libxsmm_mp_libxsmm_<wbr>smmavailable_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x624e): undefined reference to `libxsmm_mp_libxsmm_smmcall_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x62bd): undefined reference to `libxsmm_mp_libxsmm_smmcall_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0x64d7): undefined reference to `libxsmm_mp_libxsmm_sgemm_'<br>/ichec/home/users/davide/scr/<wbr>cp2k/cp2k/lib/test/xsmm/<wbr>libdbcsrmm.a(dbcsr_mm_hostdrv.<wbr>o): In function `dbcsr_mm_hostdrv_mp_xsmm_<wbr>process_mm_stack_d_':<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xcd0a): undefined reference to `libxsmm_mp_libxsmm_<wbr>dmmdispatch_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xcd18): undefined reference to `libxsmm_mp_libxsmm_<wbr>dmmavailable_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xcdc4): undefined reference to `libxsmm_mp_libxsmm_dmmcall_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xce20): undefined reference to `libxsmm_mp_libxsmm_dmmcall_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xd046): undefined reference to `libxsmm_mp_libxsmm_dgemm_'<br>/ichec/home/users/davide/scr/<wbr>cp2k/cp2k/lib/test/xsmm/<wbr>libdbcsrmm.a(dbcsr_mm_hostdrv.<wbr>o): In function `dbcsr_mm_hostdrv_mp_xsmm_<wbr>process_mm_stack_s_':<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xe8fa): undefined reference to `libxsmm_mp_libxsmm_<wbr>smmdispatch_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xe908): undefined reference to `libxsmm_mp_libxsmm_<wbr>smmavailable_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xe9b4): undefined reference to `libxsmm_mp_libxsmm_smmcall_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xea10): undefined reference to `libxsmm_mp_libxsmm_smmcall_'<br>dbcsr_mm_hostdrv.f90:(.text+<wbr>0xec36): undefined reference to `libxsmm_mp_libxsmm_sgemm_'<br>make[3]: *** [/ichec/home/users/davide/scr/<wbr>cp2k/cp2k/exe/test/dbcsr_<wbr>example_1.xsmm] Error 1<br><br><br>which if I am not wrong it means the compiler cannot find the library. <br><br>Just to be sure it was not related to xsmm version I tried with v1.1, v1.3, v1.7 and this 1.6<br><br><br>I feel a bit stupid at the moment :-S <br>Can anyone help? <br><br>Cheers<br>Davide<br> <br><br>#Define the correct path for the different variables<br>MKL=/ichec/packages/intel/<wbr>2015.u3/composer_xe_2015.3.<wbr>187/mkl<br>FFTW=/ichec/packages/fftw/<wbr>intel_mpi/3.3.4<br>LIBXSMM=/ichec/home/users/<wbr>davide/lib/libxsmm.git/tags/1.<wbr>1<br>#Define the compilers<br>CC       = icc<br>CPP      = /lib/cpp<br>FC       = mpiifort<br>FC_fixed = mpiifort<br>LD       = mpiifort<br>AR       = /usr/bin/ar -r<br>#Modify the flags as reqired<br>DFLAGS   = -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -D__FFTW3 \<br>           -D__LIBXSMM<br>CPPFLAGS = -C $(DFLAGS) -P -traditional -I$(FFTW)/include/<br>FCFLAGS  = -O2 -pc64 -unroll -heap-arrays 64 -I$(FFTW)/include -I$(LIBXSMM)/include<br>#verify if the path to the libraries is correct<br>LDFLAGS  = $(FCFLAGS) -L$(MKL)/lib/intel64 -L$(FFTW)/lib -L$(LIBXSMM)/lib<br>LDFLAGS_C  = $(LDFLAGS) -nofor_main<br>#What Libraries <br>LIBS     = -mkl -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64 -lmkl_intel_lp64 \<br>           -lmkl_intel_thread -lmkl_core -lm -lpthread -lfftw3 \<br>           /ichec/home/users/davide/lib/<wbr>libxsmm.git/tags/1.6/lib/<wbr>libxsmm.a<br>#Not sure what this does but it won't hurt<br>OBJECTS_ARCHITECTURE = machine_intel.o<br><br><br>as you can see I <br></div><span><font color="#888888">

<p></p>

-- <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="GxoUDVw0BAAJ" 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="GxoUDVw0BAAJ" 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>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=<wbr>*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=<wbr>-=*=-=*=-=*=-=*=-<br>  Ari Paavo Seitsonen / <a href="javascript:" target="_blank" gdf-obfuscated-mailto="GxoUDVw0BAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">Ari.P...@iki.fi</a> / <a href="http://www.iki.fi/~apsi/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.iki.fi%2F~apsi%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG0aHwDkzSRT8XFNp-VAYw9AsYKJg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.iki.fi%2F~apsi%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG0aHwDkzSRT8XFNp-VAYw9AsYKJg';return true;">http://www.iki.fi/~apsi/</a><br>    Ecole Normale Supérieure (ENS), Département de Chimie, Paris<br>    Mobile (F) : +33 789 37 24 25    (CH) : +41 79 71 90 935<br></div></div></div></div></div></div>
</div>
</blockquote></div>