<div dir="ltr">Using <span style="font-size:12.8px"> "PREFERRED_FFT_LIBRARY FFTSG” finally </span><span style="font-size:12.8px">fix the issue.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thank you,</span></div><div><span style="font-size:12.8px">Mariella<br></span><div><span style="font-size:12.8px"><br></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 February 2017 at 23:58, Iain Bethune <span dir="ltr"><<a href="mailto:i.be...@epcc.ed.ac.uk" target="_blank">i.be...@epcc.ed.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On my intel build (same as used for the dashboard testing), the input runs fine, at least until the first SCF step when I stopped it. The fact that it also works for you with a gfortran build also points to some local build configuration issue. One thing to try is a serial build with -O0 and reference BLAS/LAPACK as this essentially rules out any problems with the compiler/MKL. Obviously it will be very slow, but if you can get the calculation up to the point where it prints the first "Electronic density on regular grids” that is enough. Assuming this works you can then start increasing the optimisation and adding in MKL, MPI etc. and see what causes the failure.<br>
<span class=""><br>
- Iain<br>
<br>
<br>
--<br>
<br>
Iain Bethune<br>
Project Manager, EPCC<br>
<br>
</span>Email: <a href="mailto:i.be...@epcc.ed.ac.uk">i.be...@epcc.ed.ac.uk</a><br>
<span class="im HOEnZb">Twitter: @IainBethune @PrimeGrid @CP2Kproject<br>
Web: <a href="http://www2.epcc.ed.ac.uk/~ibethune" rel="noreferrer" target="_blank">http://www2.epcc.ed.ac.uk/~<wbr>ibethune</a><br>
Tel/Fax: <a href="tel:%2B44%20%280%29131%20651%207183" value="+441316517183">+44 (0)131 651 7183</a>/6555<br>
Mob: <a href="tel:%2B44%20%280%297598317015" value="+447598317015">+44 (0)7598317015</a><br>
Addr: 2404 JCMB, The King's Buildings, Peter Guthrie Tait Road, Edinburgh, EH9 3FD<br>
<br>
</span><div class="HOEnZb"><div class="h5">> On 1 Feb 2017, at 14:11, Christopher Knight <<a href="mailto:cjknig...@gmail.com">cjknig...@gmail.com</a>> wrote:<br>
><br>
> Have you already checked whether the issue goes away using "PREFERRED_FFT_LIBRARY FFTSG”?<br>
><br>
> 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>
><br>
> chris<br>
><br>
><br>
><br>
>> On Feb 1, 2017, at 7:31 AM, Mariella Ippolito <<a href="mailto:mariella...@gmail.com">mariella...@gmail.com</a>> wrote:<br>
>><br>
>> Dear Iain,<br>
>> 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).<br>
>> I read that some other users experienced similar problem but in their case the use MKL 2017.0.098 seem to solve the problem.<br>
>> Some other suggestion?<br>
>><br>
>> Thank you,<br>
>> Mariella<br>
>><br>
>><br>
>> On Wednesday, February 1, 2017 at 11:53:15 AM UTC+1, Mariella Ippolito wrote:<br>
>> Dear Iain,<br>
>> Thank you for your quick answer!<br>
>> 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.<br>
>> I try again using the previous version of mkl and your arch file.<br>
>> At the moment I'm using the branch version of cp2k, do you suggest to use the trunk?<br>
>><br>
>> Thank you,<br>
>> Mariella<br>
>><br>
>><br>
>> On Wednesday, February 1, 2017 at 9:47:09 AM UTC+1, IBethune wrote:<br>
>> 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="noreferrer" target="_blank">http://cp2k-www.epcc.ed.ac.uk/<wbr>phi/psmp/regtest-arch</a> (linked from <a href="http://dashboard.cp2k.org" rel="noreferrer" target="_blank">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 href="mailto:i.b...@epcc.ed.ac.uk">i.b...@epcc.ed.ac.uk</a><br>
>> Twitter: @IainBethune @PrimeGrid @CP2Kproject<br>
>> Web: <a href="http://www2.epcc.ed.ac.uk/~ibethune" rel="noreferrer" target="_blank">http://www2.epcc.ed.ac.uk/~<wbr>ibethune</a><br>
>> Tel/Fax: <a href="tel:%2B44%20%280%29131%20651%207183" value="+441316517183">+44 (0)131 651 7183</a>/6555<br>
>> Mob: <a href="tel:%2B44%20%280%297598317015" value="+447598317015">+44 (0)7598317015</a><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 href="mailto:marie...@gmail.com">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 href="mailto:cp2k%2...@googlegroups.com">cp2k+...@googlegroups.com</a>.<br>
>> > To post to this group, send email to <a href="mailto:cp...@googlegroups.com">cp...@googlegroups.com</a>.<br>
>> > Visit this group at <a href="https://groups.google.com/group/cp2k" rel="noreferrer" target="_blank">https://groups.google.com/<wbr>group/cp2k</a>.<br>
>> > For more options, visit <a href="https://groups.google.com/d/optout" rel="noreferrer" target="_blank">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>
>><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 href="mailto:cp2k%2Bun...@googlegroups.com">cp2k+unsubscribe@googlegroups.<wbr>com</a>.<br>
>> To post to this group, send email to <a href="mailto:cp...@googlegroups.com">cp...@googlegroups.com</a>.<br>
>> Visit this group at <a href="https://groups.google.com/group/cp2k" rel="noreferrer" target="_blank">https://groups.google.com/<wbr>group/cp2k</a>.<br>
>> For more options, visit <a href="https://groups.google.com/d/optout" rel="noreferrer" target="_blank">https://groups.google.com/d/<wbr>optout</a>.<br>
><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 href="mailto:cp2k%2Bun...@googlegroups.com">cp2k+unsubscribe@googlegroups.<wbr>com</a>.<br>
> To post to this group, send email to <a href="mailto:cp...@googlegroups.com">cp...@googlegroups.com</a>.<br>
> Visit this group at <a href="https://groups.google.com/group/cp2k" rel="noreferrer" target="_blank">https://groups.google.com/<wbr>group/cp2k</a>.<br>
> For more options, visit <a href="https://groups.google.com/d/optout" rel="noreferrer" target="_blank">https://groups.google.com/d/<wbr>optout</a>.<br>
<br>
<br>
--<br>
The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>
--<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/ppBRwaQ6w-s/unsubscribe" rel="noreferrer" target="_blank">https://groups.google.com/d/<wbr>topic/cp2k/ppBRwaQ6w-s/<wbr>unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:cp2k%2Bun...@googlegroups.com">cp2k+unsubscribe@googlegroups.<wbr>com</a>.<br>
To post to this group, send email to <a href="mailto:cp...@googlegroups.com">cp...@googlegroups.com</a>.<br>
Visit this group at <a href="https://groups.google.com/group/cp2k" rel="noreferrer" target="_blank">https://groups.google.com/<wbr>group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="noreferrer" target="_blank">https://groups.google.com/d/<wbr>optout</a>.<br>
</div></div></blockquote></div><br></div>