<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>




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #f2f2f2; background-color: #000000; background-color: rgba(0, 0, 0, 0.85)}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>


<p class="p1"><span class="s1">LIBS<span class="Apple-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: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;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/" target="_blank" rel="nofollow" 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" target="_blank" rel="nofollow" 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>