<div dir="ltr"><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div style="font-family:garamond,serif"><br></div><div 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 style="font-family:garamond,serif">Do you know any way to boost performance a bit without changing the given input file? </div><div style="font-family:garamond,serif"><br></div></div></blockquote><div><br></div><div>Well, libxsmm can still give you good performance on AMD too, so I suggest to use it.</div><div>Concerning other possible optimizations, it depends on what you are running. Could you share your output?</div><div><br></div><div>Alfio</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div style="font-family:garamond,serif"></div><div style="font-family:garamond,serif"><br></div><div style="font-family:garamond,serif"></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 23 May 2019 at 11:08, Alfio Lazzaro <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="IXVGs8rNBAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">al...@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><span>LIBS<span>        </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" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.amd.com%2Famd-cpu-libraries%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEh4cAFE1LcPi9rJHA6DKpqVpzWKg';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.amd.com%2Famd-cpu-libraries%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEh4cAFE1LcPi9rJHA6DKpqVpzWKg';return true;">https://developer.amd.com/<wbr>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" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.amd.com%2Fwp-content%2Fresources%2FAMDCPULibrariesUserGuide_1.3.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEsIFOnHVyqyIlg03aNp8b7FfZpXQ';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeveloper.amd.com%2Fwp-content%2Fresources%2FAMDCPULibrariesUserGuide_1.3.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEsIFOnHVyqyIlg03aNp8b7FfZpXQ';return true;">https://<wbr>developer.amd.com/wp-content/<wbr>resources/<wbr>AMDCPULibrariesUserGuide_1.3.<wbr>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/<wbr>sopt/libdbcsrops.a(dbcsr_<wbr>operations.o): In function `__dbcsr_operations_MOD_dbcsr_<wbr>init_random':</div><div>/home/phuong/cp2k-6.1/src/<wbr>dbcsr/ops/dbcsr_operations.F:<wbr>1104: undefined reference to `dlarnv_'</div><div>/home/phuong/cp2k-6.1/src/<wbr>dbcsr/ops/dbcsr_operations.F:<wbr>1104: undefined reference to `dlarnv_'</div><div>/home/phuong/cp2k-6.1/lib/amd/<wbr>sopt/libdbcsrops.a(dbcsr_blas_<wbr>operations.o): In function `__dbcsr_blas_operations_MOD_<wbr>dbcsr_lapack_larnv':</div><div>/home/phuong/cp2k-6.1/src/<wbr>dbcsr/ops/dbcsr_blas_<wbr>operations.F:84: undefined reference to `zlarnv_'</div><div>/home/phuong/cp2k-6.1/src/<wbr>dbcsr/ops/dbcsr_blas_<wbr>operations.F:82: undefined reference to `clarnv_'</div><div>/home/phuong/cp2k-6.1/src/<wbr>dbcsr/ops/dbcsr_blas_<wbr>operations.F:78: undefined reference to `slarnv_'</div><div>/home/phuong/cp2k-6.1/src/<wbr>dbcsr/ops/dbcsr_blas_<wbr>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/<wbr>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" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/topic/cp2k/4vFftwwDEJg/unsubscribe';return true;" onclick="this.href='https://groups.google.com/d/topic/cp2k/4vFftwwDEJg/unsubscribe';return true;">https://groups.google.com/d/<wbr>topic/cp2k/4vFftwwDEJg/<wbr>unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="IXVGs8rNBAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.<wbr>com</a>.<br>
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="IXVGs8rNBAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c...@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>
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" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msgid/cp2k/add016e6-b3a7-48f5-8dd9-d38eb9b50330%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/cp2k/add016e6-b3a7-48f5-8dd9-d38eb9b50330%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;">https://groups.google.com/d/<wbr>msgid/cp2k/add016e6-b3a7-48f5-<wbr>8dd9-d38eb9b50330%<wbr>40googlegroups.com</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>
</blockquote></div>
</blockquote></div>