<div dir="ltr">Hi Alfio,<div>thanks for your reply. I also opted for the AVX setting. I just thought that the this libxsmm cp2k flag is somehow aligned with the cp2k needs. I'll also post this at their git page.<br><br>On Saturday, January 16, 2016 at 2:41:21 PM UTC+1, Alfio Lazzaro wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>Hi Johannes,</div><div>the MNK values are not the same, libxsmm produces less kernels (probably related to specific benchmarks used by libxsmm developers). I cannot speak about LIBXSMM (you should ask in their git forum), however I would suggest to use what is in the toolchain for MNK, which is the most general case for CP2K kernels. Concerning the other parameters, depending on your system, I would suggest to change SSE in AVX=1 (sandybridge/ivydridge) or 2 (haswell/broadwell) (AVX=3 is Intel KNL, so it doesn't not exist yet).</div><div><br></div><div>Alfio</div><div><br></div><div><br></div><br><br>Il giorno venerdì 15 gennaio 2016 16:33:11 UTC+1, Johannes Wagner ha scritto:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hey all,<div>I have a question regarding installing libxsmm. If downloaded from git (<a href="https://github.com/hfp/libxsmm/archive/1.1.1.tar.gz" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fhfp%2Flibxsmm%2Farchive%2F1.1.1.tar.gz\46sa\75D\46sntz\0751\46usg\75AFQjCNG9RL0_ytg-_LAqsQ2bMyR2sRQ7wQ';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fhfp%2Flibxsmm%2Farchive%2F1.1.1.tar.gz\46sa\75D\46sntz\0751\46usg\75AFQjCNG9RL0_ytg-_LAqsQ2bMyR2sRQ7wQ';return true;">https://github.com/hfp/<wbr>libxsmm/archive/1.1.1.tar.gz</a>), the make.sh file includes an -cp2k flag that sets MNK options to:</div><div><br></div><div><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> MNK=" \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 23, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 6, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 14 16 29, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 14 32 29, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 5 32 13 24 26, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 9 32 22, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 64, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 78, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 16 29 55, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 32 29 55, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 12, \</p>
<p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"> 4 5 7 9 13 25 26 28 32 45"</p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"><br></p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)">along with </p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)">ALIGNED_LOADS=1 ALIGNED_STORES=1 PRECISION=2 SYM=1 SSE=3</p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"><br></p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)">but the cp2k source's toolchain installer sets it to </p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"><br></p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)">MNK="1 4 5 6 8 9 13 16 17 22 23 24 26 32"</p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"><br></p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)">along with</p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)">SSE=1 JIT=1 PREFETCH=1<br></p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)"><br></p><p style="font-size:12px;line-height:normal;font-family:Helvetica;color:rgb(69,69,69)">Now why is this inconsistent? Which is the "correct" MNK options, or does the former comprise all cases from the latter? And the option SSE=3 doesn't even exist according to the Makefile.inc. Only SSE=1 or AVX=1|2|3 (which at least is sort of what the libxsmm.pdf in the libxsmm documentation folder says).</p></div></div></blockquote></div></blockquote></div></div>