<div dir="ltr"><div class="gmail_default" style="font-family:garamond,serif">Hi Alfio,</div><div class="gmail_default" style="font-family:garamond,serif"><br></div><div class="gmail_default" style="font-family:garamond,serif">Thank you for your answer.</div><div class="gmail_default" style="font-family:garamond,serif">The libflame is AMD lib having LAPACK functions. I actually linked libflame together with blis before and still showed the same errors.</div><div class="gmail_default" style="font-family:garamond,serif">After reading your answer, I tried to link LAPACK + BLIS and eventually it works although I haven't tested with benchmarks yet. I assume that there are some problems with Libflame and I will try to compile it again.</div><div class="gmail_default" style="font-family:garamond,serif"><br></div><div class="gmail_default" style="font-family:garamond,serif">I also appreciate your suggestion for libxsmm and libsmm. Actually we have cp2k as a application task in a cluster competition.</div><div class="gmail_default" style="font-family:garamond,serif">Do you know any way to boost performance a bit without changing the given input file? </div><div class="gmail_default" style="font-family:garamond,serif"><br></div><div class="gmail_default" style="font-family:garamond,serif"><br></div><div class="gmail_default" style="font-family:garamond,serif"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 23 May 2019 at 11:08, Alfio Lazzaro <<a href="mailto:alfio....@gmail.com">alfio....@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello Bich Phuong,</div><div>larnv is a LAPACK function. However, I don't see any LAPACK library in your arch file:<br></div><div><br></div><div>







<p class="gmail-m_477822877467592191p1"><span class="gmail-m_477822877467592191s1">LIBS<span class="gmail-m_477822877467592191Apple-converted-space">        </span>= -lblis -lxsmmf -lxsmm -ldl -lpthread -lsmm_dnn -lxcf03 -lxc -lderiv -lint -lfftw3 -lstdc++</span></p></div><div><br></div><div><br></div><div>BTW, I see that you are lusing libxsmm and libsmm, there are mutual exclusive. You can just use libxsmm.</div><div><br></div><div>Alfio</div><div><br></div><br>Il giorno mercoledì 22 maggio 2019 20:58:20 UTC+2, Bich Phuong ha scritto:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I like to compile CP2K with AMD libs to compare the performances with the one compiled with OpenBLAS, LAPACK and Scalapack</div><div>since I had the system with 2 x EPYC 7601.</div><div><br></div><div>I checked the install_cp2k_toolchain.sh and install_acml.sh but the acml doesn't exist anymore (<a href="https://developer.amd.com/amd-cpu-libraries/" rel="nofollow" target="_blank">https://developer.amd.com/amd-cpu-libraries/</a>), thus can not use this tool.</div><div>I modify the local.sopt (tried with sopt firstly) arch file created by install_cp2k_toolchain.sh by replacing path of openblas and -lopenblas, tried to link either BLIS/BLIS+libflame/LibM but nothing works (the available libraries or compiled them by myself follow this documentation <a href="https://developer.amd.com/wp-content/resources/AMDCPULibrariesUserGuide_1.3.pdf" rel="nofollow" target="_blank">https://developer.amd.com/wp-content/resources/AMDCPULibrariesUserGuide_1.3.pdf</a>).</div><div>It complaint about undefined references to some BLAS functions.</div><div>-----------------------</div><div><div>/home/phuong/cp2k-6.1/lib/amd/sopt/libdbcsrops.a(dbcsr_operations.o): In function `__dbcsr_operations_MOD_dbcsr_init_random':</div><div>/home/phuong/cp2k-6.1/src/dbcsr/ops/dbcsr_operations.F:1104: undefined reference to `dlarnv_'</div><div>/home/phuong/cp2k-6.1/src/dbcsr/ops/dbcsr_operations.F:1104: undefined reference to `dlarnv_'</div><div>/home/phuong/cp2k-6.1/lib/amd/sopt/libdbcsrops.a(dbcsr_blas_operations.o): In function `__dbcsr_blas_operations_MOD_dbcsr_lapack_larnv':</div><div>/home/phuong/cp2k-6.1/src/dbcsr/ops/dbcsr_blas_operations.F:84: undefined reference to `zlarnv_'</div><div>/home/phuong/cp2k-6.1/src/dbcsr/ops/dbcsr_blas_operations.F:82: undefined reference to `clarnv_'</div><div>/home/phuong/cp2k-6.1/src/dbcsr/ops/dbcsr_blas_operations.F:78: undefined reference to `slarnv_'</div><div>/home/phuong/cp2k-6.1/src/dbcsr/ops/dbcsr_blas_operations.F:80: undefined reference to `dlarnv_'</div><div>collect2: error: ld returned 1 exit status</div><div>make[3]: *** [/home/phuong/cp2k-6.1/exe/amd/dbcsr_example_3.sopt] Error 1</div><div>make[3]: *** Waiting for unfinished jobs....</div></div><div>--------------------------</div><div><br></div><div>Does anyone have experiences with this work?</div><div>Which AMD library should I use to alter the ACML one?</div><div><br></div><div>Thank you.</div></div></blockquote></div>

<p></p>

-- <br>
You received this message because you are subscribed to a topic in the Google Groups "cp2k" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/cp2k/4vFftwwDEJg/unsubscribe" target="_blank">https://groups.google.com/d/topic/cp2k/4vFftwwDEJg/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
Visit this group at <a href="https://groups.google.com/group/cp2k" target="_blank">https://groups.google.com/group/cp2k</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/add016e6-b3a7-48f5-8dd9-d38eb9b50330%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/cp2k/add016e6-b3a7-48f5-8dd9-d38eb9b50330%40googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</blockquote></div>