<div dir="ltr"><div>Dear Alfio,</div><div><br></div><div>The problem has been fixed with the new release of OpenBLAS 0.3.0. Thank you!</div><div><br></div><div>Anton<br></div><br>вторник, 22 мая 2018 г., 10:49:44 UTC пользователь Alfio Lazzaro написал:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Dear Anton,<div>I did a test with the toolchain and GCC 8.1. Note that we use Netlib BLAS/LAPACK in the toolchain, therefore I should reproduce your problem.</div><div>Then I compiled a PSMP version of CP2K. I got some warnings related to implicit reallocation and uninitialized values, which are not supposed to be there (at least they were not recognized by GCC 7.3). I ignored them and run regression tests. It works.</div><div><br></div><div>This is the way to run CP2K with toolchain and GCC 8.1.</div><div>1) Download CP2K trunk (svn checkout <a href="http://svn.code.sf.net/p/cp2k/code/trunk/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvn.code.sf.net%2Fp%2Fcp2k%2Fcode%2Ftrunk%2Fcp2k\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHXY0YHAZUHZuxyVdUGlpXAw6twpQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvn.code.sf.net%2Fp%2Fcp2k%2Fcode%2Ftrunk%2Fcp2k\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHXY0YHAZUHZuxyVdUGlpXAw6twpQ';return true;">http://svn.code.sf.net/p/cp2k/<wbr>code/trunk/cp2k</a> cp2k)</div><div>2) open the file cp2k/tools/toolchain/scripts/<wbr>package_versions.sh and change the GCC version:</div><div><br></div><div><div>-gcc_ver=${gcc_ver:-7.3.0}</div><div>+gcc_ver=${gcc_ver:-8.1.0}</div></div><div><br></div><div>3) Go inside the directory: tools/toolchain and run the command:</div><div><br></div><div><span style="font-family:monospace;color:rgb(0,0,0)">./install_cp2k_toolchain.sh --install-all </span><font face="monospace" color="#000000">--with-quip=no</font><br>
<br></div><div>It will install all packages, including GCC and BLAS.</div><div><br></div><div>4) Compile CP2K as usual and then with your input. As I mentioned, I get some warnings, that's why I have removed the flags:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">-Werror=uninitialized </span></span><font face="monospace" color="#000000">-Werror=<wbr>realloc-lhs-all</font><span style="font-family:monospace"><br></span></div><div><br></div><div>Let me know if it works. <br></div><div><br></div><div>Alfio</div><div><br></div><div><br></div><div><br></div><div><div><br><br>Il giorno sabato 19 maggio 2018 13:36:38 UTC+2, Anton Kudelin ha scritto:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<br><br>I run Arch Linux, and recently it changed the major version of the system compiler. So I tried to compile CP2K with GCC 8.1.0 after the environment being rebuilt and found something strange. The problem may lay far beyond CP2K, but the program is a reliable indicator of the quality of compilers and libraries, by the way it has very experienced community.<br><br>In short, BLAS/LAPACK routines don't working when compiled with GCC 8.1.0. I tried NetLib BLAS/LAPACK, ATLAS, and OpenBLAS and obtained the same results: SCF cannot get converged. On the other hand, Intel MKL does things as earlier.<br><br>Could anybody check my results? If I get them proved, it could mean a terrible issue with GCC 8.1.0 or even with BLAS/LAPACK that has to be reported.<br><br>Anton<br></div></blockquote></div></div></div></blockquote></div>