<div dir="ltr"><div>Dear Iain,</div><div>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>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>Some other suggestion?</div><div><br></div><div>Thank you,</div><div>Mariella</div><div><br></div><br>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"><div>Dear Iain, <br></div><div>Thank you for your quick answer! </div><div>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>I try again using the previous version of mkl and your arch file.<br></div><div>At the moment I'm using the branch version of cp2k, do you suggest to use the trunk? </div><div><br></div><div>Thank you,</div><div>Mariella</div><div><br></div><br>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>
<br>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;">http://cp2k-www.epcc.ed.ac.uk/<wbr>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;">http://dashboard.cp2k.org</a>
<br>
<br>Cheers
<br>
<br>- Iain
<br>
<br>--
<br>
<br>Iain Bethune
<br>Project Manager, EPCC
<br>
<br>Email: <a rel="nofollow">i.b...@epcc.ed.ac.uk</a>
<br>Twitter: @IainBethune @PrimeGrid @CP2Kproject
<br>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;">http://www2.epcc.ed.ac.uk/~<wbr>ibethune
<br>Tel/Fax</a>: +44 (0)131 651 7183/6555
<br>Mob: +44 (0)7598317015
<br>Addr: 2404 JCMB, The King's Buildings, Peter Guthrie Tait Road, Edinburgh, EH9 3FD
<br>
<br>> On 1 Feb 2017, at 08:40, Mariella Ippolito <<a rel="nofollow">marie...@gmail.com</a>> wrote:
<br>> 
<br>> Dear all,
<br>> 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>> In particular in output I obtain
<br>> 
<br>> ------------------------------<wbr>----- OT ------------------------------<wbr>---------
<br>> 
<br>>   Step     Update method      Time    Convergence         Total energy    Change
<br>>   ------------------------------<wbr>------------------------------<wbr>------------------
<br>> 
<br>>   Trace(PS):                                 1200.0000000051
<br>>   Electronic density on regular grids:                   NaN                 NaN
<br>>   Core density on regular grids:             1200.0000000000       -0.0000000000
<br>>   Total charge density on r-space grids:                 NaN
<br>>   Total charge density g-space grids:          -5.8357006210
<br>> 
<br>> Unlike the code compiled with openmpi-gnu gives:
<br>> 
<br>>  -----------------------------<wbr>------ OT ------------------------------<wbr>---------
<br>> 
<br>>   Step     Update method      Time    Convergence         Total energy    Change
<br>>   ------------------------------<wbr>------------------------------<wbr>------------------
<br>> 
<br>>   Trace(PS):                                 1199.9999998902
<br>>   Electronic density on regular grids:      -1199.9999998901        0.0000001099
<br>>   Core density on regular grids:             1199.9999999999       -0.0000000001
<br>>   Total charge density on r-space grids:        0.0000001098
<br>>   Total charge density g-space grids:           0.0000001099
<br>> 
<br>> Clearly there is something wrong with the quantities
<br>> Electronic density on regular grids
<br>> Total charge density on r-space grids
<br>> 
<br>> 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>> 
<br>> Line 855 in qs_ks_utils.F
<br>> CALL qs_rho_get(rho, tot_rho_r=tot_rho_r_arr, rho_ao_kp=rho_ao)
<br>> 
<br>> If I print tot_rho_r_arr after this call I obtain NaN for both its components
<br>> and as consequences also
<br>> tot_rho_r = accurate_sum(tot_rho_r_arr) 
<br>> is NaN 
<br>>  while if I run the executable gnu it gives the right value
<br>> tot_rho_r = accurate_sum(tot_rho_r_arr) =- 1199.99999989
<br>> 
<br>> I attach the restart file used for the calculations.
<br>> 
<br>> Can you help me to fix this problem?
<br>> 
<br>> Best regards,
<br>> Mariella
<br>> 
<br>> -- 
<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 rel="nofollow">cp2k+...@googlegroups.com</a>.
<br>> To post to this group, send email to <a rel="nofollow">cp...@googlegroups.com</a>.
<br>> 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;">https://groups.google.com/<wbr>group/cp2k</a>.
<br>> 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;">https://groups.google.com/d/<wbr>optout</a>.
<br>> <md.restart>
<br>
<br>
<br>-- 
<br>The University of Edinburgh is a charitable body, registered in
<br>Scotland, with registration number SC005336.
<br>
<br></blockquote></div></blockquote></div>