<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Have you already checked whether the issue goes away using "PREFERRED_FFT_LIBRARY FFTSG”?<div class=""><br class=""></div><div class="">I’ve noticed this issue as well on KNL with cp2k-4.1 and Intel 2017.1.132. Using FFTSG appeared to fix the issue for me, but I haven’t debugged further yet (deadlines…).<br class=""><div class=""><br class=""></div><div class="">chris</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 1, 2017, at 7:31 AM, Mariella Ippolito <<a href="mailto:mariella...@gmail.com" class="">mariella...@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Dear Iain,</div><div class="">I built again the code (trunk version) using MKL 2017.0.098 and your arch file: unfortunately I obtain the same results (Electronic density on regular grids = NaN).</div><div class="">I read that some other users experienced similar problem but in their case the use MKL 2017.0.098 seem to solve the problem.</div><div class="">Some other suggestion?</div><div class=""><br class=""></div><div class="">Thank you,</div><div class="">Mariella</div><div class=""><br class=""></div><br class="">On Wednesday, February 1, 2017 at 11:53:15 AM UTC+1, Mariella Ippolito wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr" class=""><div class="">Dear Iain, <br class=""></div><div class="">Thank you for your quick answer! </div><div class="">I also thought that the problem was related to the mkl library, so I have tried to build cp2k using Scalapack, lapack and blas libraries, and I also reduced the optimization trying both O1 O0, but that job continues to give problems.</div><div class="">I try again using the previous version of mkl and your arch file.<br class=""></div><div class="">At the moment I'm using the branch version of cp2k, do you suggest to use the trunk? </div><div class=""><br class=""></div><div class="">Thank you,</div><div class="">Mariella</div><div class=""><br class=""></div><br class="">On Wednesday, February 1, 2017 at 9:47:09 AM UTC+1, IBethune wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Mariella,
<br class="">
<br class="">As per some recent discussions about Intel 2017 on this discussion forum, it looks like some bug(s) existing in MKL 2017.1.143.  The compiler and MPI library in this release appear to be OK, but you will need to use a previous MKL version.  I don’t know if you have had successful Intel builds before, but there are several files which need to be compiled a lower optimisation to work around compiler.  There are a set of arch files which are known to be working with the CP2K trunk available via the CP2K dashboard - see e.g. <a href="http://cp2k-www.epcc.ed.ac.uk/phi/psmp/regtest-arch" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcp2k-www.epcc.ed.ac.uk%2Fphi%2Fpsmp%2Fregtest-arch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFzZFIWms0tGWA2xvxDdRIb3IInCg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fcp2k-www.epcc.ed.ac.uk%2Fphi%2Fpsmp%2Fregtest-arch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFzZFIWms0tGWA2xvxDdRIb3IInCg';return true;" class="">http://cp2k-www.epcc.ed.ac.uk/<wbr class="">phi/psmp/regtest-arch</a> (linked from <a href="http://dashboard.cp2k.org/" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fdashboard.cp2k.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFntLjvKLMzO7MF3efP4OMYJ135OA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fdashboard.cp2k.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFntLjvKLMzO7MF3efP4OMYJ135OA';return true;" class="">http://dashboard.cp2k.org</a>
<br class="">
<br class="">Cheers
<br class="">
<br class="">- Iain
<br class="">
<br class="">--
<br class="">
<br class="">Iain Bethune
<br class="">Project Manager, EPCC
<br class="">
<br class="">Email: <a rel="nofollow" class="">i.b...@epcc.ed.ac.uk</a>
<br class="">Twitter: @IainBethune @PrimeGrid @CP2Kproject
<br class="">Web: <a href="http://www.google.com/url?q=http%3A%2F%2Fwww2.epcc.ed.ac.uk%2F~ibethuneTel%2FFax&sa=D&sntz=1&usg=AFQjCNFFX2aa_LeyI8qZrXJ4SWGN4STQIA" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww2.epcc.ed.ac.uk%2F~ibethuneTel%2FFax\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFFX2aa_LeyI8qZrXJ4SWGN4STQIA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww2.epcc.ed.ac.uk%2F~ibethuneTel%2FFax\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFFX2aa_LeyI8qZrXJ4SWGN4STQIA';return true;" class="">http://www2.epcc.ed.ac.uk/~<wbr class="">ibethune
<br class="">Tel/Fax</a>: +44 (0)131 651 7183/6555
<br class="">Mob: +44 (0)7598317015
<br class="">Addr: 2404 JCMB, The King's Buildings, Peter Guthrie Tait Road, Edinburgh, EH9 3FD
<br class="">
<br class="">> On 1 Feb 2017, at 08:40, Mariella Ippolito <<a rel="nofollow" class="">marie...@gmail.com</a>> wrote:
<br class="">> 
<br class="">> Dear all,
<br class="">> I find some problems in running qs calculations with cp2K 4.1 compiled with intelmpi-2017 (the same run goes fine with the executable obtained with openmpi-gnu compiler).
<br class="">> In particular in output I obtain
<br class="">> 
<br class="">> ------------------------------<wbr class="">----- OT ------------------------------<wbr class="">---------
<br class="">> 
<br class="">>   Step     Update method      Time    Convergence         Total energy    Change
<br class="">>   ------------------------------<wbr class="">------------------------------<wbr class="">------------------
<br class="">> 
<br class="">>   Trace(PS):                                 1200.0000000051
<br class="">>   Electronic density on regular grids:                   NaN                 NaN
<br class="">>   Core density on regular grids:             1200.0000000000       -0.0000000000
<br class="">>   Total charge density on r-space grids:                 NaN
<br class="">>   Total charge density g-space grids:          -5.8357006210
<br class="">> 
<br class="">> Unlike the code compiled with openmpi-gnu gives:
<br class="">> 
<br class="">>  -----------------------------<wbr class="">------ OT ------------------------------<wbr class="">---------
<br class="">> 
<br class="">>   Step     Update method      Time    Convergence         Total energy    Change
<br class="">>   ------------------------------<wbr class="">------------------------------<wbr class="">------------------
<br class="">> 
<br class="">>   Trace(PS):                                 1199.9999998902
<br class="">>   Electronic density on regular grids:      -1199.9999998901        0.0000001099
<br class="">>   Core density on regular grids:             1199.9999999999       -0.0000000001
<br class="">>   Total charge density on r-space grids:        0.0000001098
<br class="">>   Total charge density g-space grids:           0.0000001099
<br class="">> 
<br class="">> Clearly there is something wrong with the quantities
<br class="">> Electronic density on regular grids
<br class="">> Total charge density on r-space grids
<br class="">> 
<br class="">> Looking at the source code I find that the problem may come from the quantities tot_tho_r and tot_rho_r_arr, in qs_ks_utils.F
<br class="">> 
<br class="">> Line 855 in qs_ks_utils.F
<br class="">> CALL qs_rho_get(rho, tot_rho_r=tot_rho_r_arr, rho_ao_kp=rho_ao)
<br class="">> 
<br class="">> If I print tot_rho_r_arr after this call I obtain NaN for both its components
<br class="">> and as consequences also
<br class="">> tot_rho_r = accurate_sum(tot_rho_r_arr) 
<br class="">> is NaN 
<br class="">>  while if I run the executable gnu it gives the right value
<br class="">> tot_rho_r = accurate_sum(tot_rho_r_arr) =- 1199.99999989
<br class="">> 
<br class="">> I attach the restart file used for the calculations.
<br class="">> 
<br class="">> Can you help me to fix this problem?
<br class="">> 
<br class="">> Best regards,
<br class="">> Mariella
<br class="">> 
<br class="">> -- 
<br class="">> You received this message because you are subscribed to the Google Groups "cp2k" group.
<br class="">> To unsubscribe from this group and stop receiving emails from it, send an email to <a rel="nofollow" class="">cp2k+...@googlegroups.com</a>.
<br class="">> To post to this group, send email to <a rel="nofollow" class="">cp...@googlegroups.com</a>.
<br class="">> Visit this group at <a href="https://groups.google.com/group/cp2k" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;" class="">https://groups.google.com/<wbr class="">group/cp2k</a>.
<br class="">> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;" class="">https://groups.google.com/d/<wbr class="">optout</a>.
<br class="">> <md.restart>
<br class="">
<br class="">
<br class="">-- 
<br class="">The University of Edinburgh is a charitable body, registered in
<br class="">Scotland, with registration number SC005336.
<br class="">
<br class=""></blockquote></div></blockquote></div><div class=""><br class="webkit-block-placeholder"></div>

-- <br class="">
You received this message because you are subscribed to the Google Groups "cp2k" group.<br class="">
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+uns...@googlegroups.com" class="">cp2k+uns...@googlegroups.com</a>.<br class="">
To post to this group, send email to <a href="mailto:cp...@googlegroups.com" class="">cp...@googlegroups.com</a>.<br class="">
Visit this group at <a href="https://groups.google.com/group/cp2k" class="">https://groups.google.com/group/cp2k</a>.<br class="">
For more options, visit <a href="https://groups.google.com/d/optout" class="">https://groups.google.com/d/optout</a>.<br class="">
</div></blockquote></div><br class=""></div></div></body></html>