<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.pl-k
{mso-style-name:pl-k;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="en-CH" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="DE-CH" style="font-size:11.0pt;mso-fareast-language:EN-US">Dear Eugene<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">As far as I know the libint tar files provided for the build of CP2K haven’t changed since quite a while (many years). I don’t know why you observe such kind of “sensitivity”.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">Best<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">Matthias<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<b><span style="color:black">From: </span></b><span style="color:black">cp2k@googlegroups.com <cp2k@googlegroups.com> on behalf of Eugene <roginovicci@gmail.com><br>
<b>Date: </b>Thursday, 21 March 2024 at 17:40<br>
<b>To: </b>cp2k@googlegroups.com <cp2k@googlegroups.com><br>
<b>Subject: </b>Re: [CP2K:20051] Hybrid MPI+OpenMP is broken in v2024.1?<o:p></o:p></span></p>
</div>
<p style="margin-left:36.0pt">Dear <span lang="EN-US">Matthias,</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US">I'm really appreciate for your valuable comments. Your help is very fruitful, thank you!</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US">Actually, where is nothing special in output file the calculations simple freeze after the message"</span><o:p></o:p></p>
<div style="margin-bottom:12.0pt;box-sizing:border-box;overflow:visible!important;font-variant-ligatures:normal;font-variant-caps:normal;orphans:2;text-align:start;widows:2;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<pre style="margin-left:36.0pt;background:white"><span style="font-size:9.0pt;color:#1F2328">HFX_MEM_INFO<span class="pl-k">|</span> Est. max. program size before HFX [MiB]: 1283<o:p></o:p></span></pre>
</div>
<p style="margin-left:36.0pt"><span lang="EN-US">There is already a mess in different CP2K versions and supporting libraries installed, but I'm trying to control the situation...</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US">So before sending a proper output I emerged a test using only MPI parallelization and it was always failed when hybrid functional is used. But I swear it worked before. So I grabbed dependency libraries form
version 8 set and feed them to version 2024. I found libint cause the problem. According to toolchain scripts the 2.6.0 version is recommended with LMAX=5. I took the source from libint-v2.6.0-cp2k-lmax-4.tgz traball and compiled with options --enable-fortran
--with-pic --enable-shared and this combination seems to work in hybrid MPI+OMP mode. Although OMP_STACKSIZE requires to be 4 times as much with respect to version 8.</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US">Why CP2K is so sensitive to libint in Hybrid functional calculations?</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><o:p> </o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US">Thank you in advance,<br>
Eugene</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">On 3/20/24 16:49, Krack Matthias wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="DE-CH">Dear Eugene</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="DE-CH"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US">The cp2k code has been increasingly functionalized with OpenMP directives since version 8 including the loops in the PW part operating with large arrays. By contrast to the GNU compiler, the Intel compiler requires now in most cases an explicit
increase of the OMP_STACKSIZE. Your problem with the PBE0 run could have also other reasons. Without an input/output example showing the problem, it is difficult to provide further hints.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US">Best</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US">Matthias</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US"> </span><o:p></o:p></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<b>From: </b><a href="mailto:cp2k@googlegroups.com">cp2k@googlegroups.com</a> <a href="mailto:cp2k@googlegroups.com">
<cp2k@googlegroups.com></a> on behalf of Eugene <a href="mailto:roginovicci@gmail.com">
<roginovicci@gmail.com></a><br>
<b>Date: </b>Wednesday, 20 March 2024 at 13:16<br>
<b>To: </b><a href="mailto:cp2k@googlegroups.com">cp2k@googlegroups.com</a> <a href="mailto:cp2k@googlegroups.com">
<cp2k@googlegroups.com></a><br>
<b>Subject: </b>Re: [CP2K:20045] Hybrid MPI+OpenMP is broken in v2024.1?<o:p></o:p></p>
</div>
<p style="margin-left:36.0pt">Dear Matthias,<o:p></o:p></p>
<p style="margin-left:36.0pt">Thank you for advice. This guide me towards localization of the problem.
<o:p></o:p></p>
<p style="margin-left:36.0pt">I have two testing system with the same atomic structure but different functionals, namely common PBE and hybrid PBE0. Both works in hybrid mode in CP2K v8 without changing
<span lang="EN-US">OMP_STACKSIZE. In new version of CP2K v2024.1 it become very important to set OMP_STACKSIZE=44m.</span> for PBE model. value below 44m will rise segfault. But for PBE0 model there is no reasonable value to finish calculations even 1024m rise
segfault.<o:p></o:p></p>
<p style="margin-left:36.0pt">According to htop statistics I found that new 2024.1 version took more SHM (amount of shared memory used by a task) per process -- approx 1.3 times more ~ 135 M.<o:p></o:p></p>
<p style="margin-left:36.0pt">At the same time in case of old v8 CP2K there is no influence of
<span lang="EN-US">OMP_STACKSIZE at all. Even very small values doesn't rise error and calculations finished normally.</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US">Is there something related to OMP_STACKSIZE in configuration of CP2K source code. Some kind of limit or -D parameter?</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US">I found related unresolved issue in mailing list:</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US"><a href="https://groups.google.com/g/cp2k/c/40Ods3HYW5g">https://groups.google.com/g/cp2k/c/40Ods3HYW5g</a></span><o:p></o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US">I made some test with different cutoffs as well and in new 2024.1 it always crashed in PBE0.</span><o:p></o:p></p>
<p style="margin-left:36.0pt"><span lang="EN-US">Best regards,<br>
Eugene</span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
On 3/19/24 17:02, Krack Matthias wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="DE-CH">HI Eugene</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="DE-CH"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US">If you haven’t tried yet, you can set the environment variable OMP_STACKSIZE=64m.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US">HTH</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US">Matthias</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<span lang="EN-US"> </span><o:p></o:p></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<b>From: </b><a href="mailto:cp2k@googlegroups.com">cp2k@googlegroups.com</a> <a href="mailto:cp2k@googlegroups.com">
<cp2k@googlegroups.com></a> on behalf of Eugene <a href="mailto:roginovicci@gmail.com">
<roginovicci@gmail.com></a><br>
<b>Date: </b>Tuesday, 19 March 2024 at 13:43<br>
<b>To: </b>cp2k <a href="mailto:cp2k@googlegroups.com"><cp2k@googlegroups.com></a><br>
<b>Subject: </b>[CP2K:20043] Hybrid MPI+OpenMP is broken in v2024.1?<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
Hi, I've finally compiled CP2K v2024.1 using cmake build system (which was a long story accompanied with cmake modules fixing). Anyway I have two nodes for testing based on xeon 2011 v4 processors (-march=broadwell) running on Almalinux 9. I have the following
library compiled and installed:<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
1. linint 2.6.0 (options are --enable-fortran --with-pic --enable-shared as suggested in toolchain build script)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
2. libxsmm-1.17 (with option INTRINSICS=1)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
3. libxc-6.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
4. dbcsr-2.6.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
5. Elpa <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
Everything was build with Intel oneAPI 2023.0.0 compilator using MKL and intel MPI libraries. <br>
The compiled binary cp2k.psmp works quite well in MPI mode (OMP_NUM_THREADS=1), but hybrid mode filed to run properly. A can see the general MPI processe do fire up OMP threads as necessary at the beginning, the calculations run and make initialization unless
"SCF WAVEFUNCTION OPTIMIZATION" starts. There is no debug information except message about Segmentation fault which rise termination of mpi process on child node. I spent hours to localize the problem but I'm pretty sure this is not due to node configuration
since old v8.2 version do works in hybrid mode even being compiled with older intel compilator.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
Any hints are very welcome,<br>
Eugene<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
-- <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="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/52bbc3d3-e857-4f21-a33f-aa42e30d106an%40googlegroups.com?utm_medium=email&utm_source=footer">
https://groups.google.com/d/msgid/cp2k/52bbc3d3-e857-4f21-a33f-aa42e30d106an%40googlegroups.com</a>.<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
-- <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/TFgAsWkpnW0/unsubscribe">
https://groups.google.com/d/topic/cp2k/TFgAsWkpnW0/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">
cp2k+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/ZRAP278MB08278F9087D15079913994C1F42C2%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer">
https://groups.google.com/d/msgid/cp2k/ZRAP278MB08278F9087D15079913994C1F42C2%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM</a>.<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt">
-- <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="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/b7c23615-29ca-474d-884e-f861eef46093%40gmail.com?utm_medium=email&utm_source=footer">
https://groups.google.com/d/msgid/cp2k/b7c23615-29ca-474d-884e-f861eef46093%40gmail.com</a>.<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-left:36.0pt">-- <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/TFgAsWkpnW0/unsubscribe">
https://groups.google.com/d/topic/cp2k/TFgAsWkpnW0/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">
cp2k+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/ZRAP278MB0827C82560F5067265202C0BF4332%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer">
https://groups.google.com/d/msgid/cp2k/ZRAP278MB0827C82560F5067265202C0BF4332%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM</a>.<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-left:36.0pt">-- <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="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/7cdacb12-cb1e-4f56-9c1f-268b98e7b77c%40gmail.com?utm_medium=email&utm_source=footer">
https://groups.google.com/d/msgid/cp2k/7cdacb12-cb1e-4f56-9c1f-268b98e7b77c%40gmail.com</a>.<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>
<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="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/ZRAP278MB08271E6F712D5227868A92E8F4312%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/ZRAP278MB08271E6F712D5227868A92E8F4312%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM</a>.<br />