<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=iso-8859-1">
<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:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",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">Hi Léon<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 Jürg wrote, the WAVELET solver requires a specific FFT library, namely FFTSG. By contrast the FFTW library, there are no EXTENDED_FFT_LENGTHS available for FFTSG.
The largest FFT length for FFTSG (being hard-coded in CP2k) is 1024. Depending on your cutoff, a cell vector length of 70 A may result in an FFT length larger than 1024. Check the output of your run for the grid sizes using
<a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/PRINT/GRID_INFORMATION.html">
this print key.</a><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="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">cp2k@googlegroups.com <cp2k@googlegroups.com> on behalf of Léon Luntadila Lufungula <Leon.luntadilalufungula@uantwerpen.be><br>
<b>Date: </b>Tuesday, 10 October 2023 at 16:19<br>
<b>To: </b>cp2k <cp2k@googlegroups.com><br>
<b>Subject: </b>Re: [CP2K:19343] FFT problems with large unit cell<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">Dear Prof. Hutter,<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">First off, my apologies for writing your surname incorrectly. I was so focussed on not forgetting the umlaut that I seem to have placed it on the wrong part of your name.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">Second, changing the source might be an option for local calculations but implementing this change on our HPC cluster is very cumbersome as I have discovered a while back when doing
something similar with Quantum ESPRESSO. Therefore, I think I'll try forcing a common grid for the troublesome calculations, but I am not sure how to do this in practice. I searched the mailing list and documentation for common grid size, but could not find
the correct option. Could you point me in the right direction for this?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">Kind regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">Léon<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<span style="font-size:11.0pt">P.S. Thanks for the descriptive answers, they really help me understand the program and how to improve my input files!<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">On Tuesday, 10 October 2023 at 13:23:37 UTC+2 Jürg Hutter wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">Hi
<br>
<br>
the wavelet solver uses its own FFT library. The calculation then requires that <br>
the number of grid points is allowed for both, the FFT library used in CP2K and <br>
in the wavelet solver code. For smaller lengths that is no problem. For larger ones the FFTSG is not available and FFTW3 might use different roots.
<br>
<br>
Possible solution (I haven't done any tests): <br>
Change in src/pw/fft/fftw3_lib.F <br>
<br>
maxn_threes = 6 <br>
maxn_fives = 5 <br>
maxn_sevens = 0 <br>
maxn_elevens = 0 <br>
maxn_thirteens = 0 <br>
<br>
If this doesn't work for some a/b/c settings, force a common grid size in the input.
<br>
<br>
regards <br>
JH <br>
<br>
PS: Please check the correct writing of my name, thank you. <br>
<br>
________________________________________ <br>
From: <span class="MsoHyperlink">cp...@googlegroups.com</span> <<span class="MsoHyperlink">cp...@googlegroups.com</span>> on behalf of Léon Luntadila Lufungula <<span class="MsoHyperlink">Leon.luntad...@uantwerpen.be</span>>
<br>
Sent: Tuesday, October 10, 2023 11:10 AM <br>
To: cp2k <br>
Subject: Re: [CP2K:19336] FFT problems with large unit cell <br>
<br>
Dear Prof. Hütter, <br>
<br>
I quickly want to summarize the errors I've had in hope that you can provide some answers as to why these happen and how I can fix them.
<br>
<br>
So I ran some calculations of a 1x4x3 anatase (101) slab with different vacuum thicknesses [a = 10 Å, b = 20-70 Å, c = 15 Å (XZ periodicity for wavelet solver)] and tried the following combinations of FFT libraries which resulting in the errors stated below:
<br>
<br>
1) FFTSG + EXTENDED_FFT_LENGTHS: fails for b = 70 Å with an "Index to radix array not found"-error
<br>
2) FFTW3 + EXTENDED_FFT_LENGTHS: fails at every value of b with "the FFT in the x direction is not allowed; n01 dimension 175"-error
<br>
3) FFTW3: fails for b = 70 Å with an "Index to radix array not found"-error <br>
<br>
>From what you've told me I plan on going with the FFTW3 library from now on, but it does still fail with a sufficiently large box when EXTENDED_FFT_LENGTHS is disabled, but enabling this option makes the problem even worse as then the calculation fails no matter
the size of the unit cell... <br>
<br>
So my question is why does the FFTW3 library give an Index error when you stated that it does not have an upper limit and why then does enabling the EXTENDED_FFT_LENGTHS result in the other error stated above?
<br>
<br>
Best regards, <br>
Léon <br>
<br>
On Wednesday, 4 October 2023 at 09:57:02 UTC+2 Léon Luntadila Lufungula wrote: <br>
Dear Prof. Hütter, <br>
<br>
Thanks for the suggestion I'll switch to FFTW3 then, but I do still have one question about using FFTW3. Why do I get the error "the FFT in the x direction is not allowed n01 dimension 175" when switching from FFTSG/EXTENDED to FFTW3/EXTENDED, while I get an
"Index to radix array not found." error when switching of EXTENDED_FFT_LENGHTS? <br>
<br>
Kind regards, <br>
Léon <br>
<br>
<br>
<br>
On Wednesday, 4 October 2023 at 09:35:36 UTC+2 Jürg Hutter wrote: <br>
Hi <br>
<br>
there is an upper limit for the FFT length for the FFTSG library (1024). <br>
I would switch to FFTW3 where no such limit exists. <br>
<br>
regards <br>
JH <br>
<br>
________________________________________ <br>
From: <span class="MsoHyperlink">cp...@googlegroups.com</span> <<span class="MsoHyperlink">cp...@googlegroups.com</span>> on behalf of Léon Luntadila Lufungula <<span class="MsoHyperlink">Leon.luntad...@uantwerpen.be</span>>
<br>
Sent: Tuesday, October 3, 2023 2:06 PM <br>
To: cp2k <br>
Subject: [CP2K:19284] FFT problems with large unit cell <br>
<br>
Dear all, <br>
<br>
I am running some tests with long chain adsorbates on a TiO2 slab and I'm running into some problems with the FFT libraries. I initially had the FFTSG set as preferred library, because the manual stated that "The use of PREFERRED_FFT_LIBRARY FFTSG is required"
when using the WAVELET solver. However, I just read in this post<<a href="https://groups.google.com/g/cp2k/c/QEveWI7UqV0" target="_blank">https://groups.google.com/g/cp2k/c/QEveWI7UqV0</a>> from Prof. Hütter that you can use the FFTW3 library in combination
with the WAVELET solver and I already read several times that using this library is generally faster compared to the internal FFTSG one. I also already had to enable the EXTENDED_FFT_LENGTHS option for calculations with smaller (10x10x30) cells as I ran into
some "Index to radix array not found."-errors. <br>
<br>
Now, with these long adsorbates I have a cell of around 10 x 15 x 60 Å and the combination of FFTSG/EXTENDED_FFT_LENGTHS again gives "Index to radix array not found."-errors, while switching to FFTW3/EXTENDED_FFT_LENGHTS says that "the FFT in the x direction
is not allowed n01 dimension 175". <br>
<br>
So I have two questions: <br>
1) Is it possible to calculate such a large cell without getting these FFT errors or is it just too large?
<br>
2) Should I switch to FFTW3/EXTENDED_FFT_LENGTHS to speed up my calculations or is it fine to continue with FFTSG/EXTENDED_FFT_LENGTHS?
<br>
<br>
Hopefully someone can help me out with this problem. <br>
<br>
All the best, <br>
Léon <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
<span class="MsoHyperlink">cp2k+uns...@googlegroups.com</span><mailto:<span class="MsoHyperlink">cp2k+uns...@googlegroups.com</span>>.
<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/38650355-0f22-4606-82bb-16a670bc8619n%40googlegroups.com" target="_blank">
https://groups.google.com/d/msgid/cp2k/38650355-0f22-4606-82bb-16a670bc8619n%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/38650355-0f22-4606-82bb-16a670bc8619n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/cp2k/38650355-0f22-4606-82bb-16a670bc8619n%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<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
<span class="MsoHyperlink">cp2k+uns...@googlegroups.com</span><mailto:<span class="MsoHyperlink">cp2k+uns...@googlegroups.com</span>>.
<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/e97d9f8a-ac3e-4cf6-adf7-4e32cfc9010fn%40googlegroups.com" target="_blank">
https://groups.google.com/d/msgid/cp2k/e97d9f8a-ac3e-4cf6-adf7-4e32cfc9010fn%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/e97d9f8a-ac3e-4cf6-adf7-4e32cfc9010fn%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/cp2k/e97d9f8a-ac3e-4cf6-adf7-4e32cfc9010fn%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<o:p></o:p></span></p>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.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/a3612a0e-35e9-45ca-9664-eed48a6dd7efn%40googlegroups.com?utm_medium=email&utm_source=footer">
https://groups.google.com/d/msgid/cp2k/a3612a0e-35e9-45ca-9664-eed48a6dd7efn%40googlegroups.com</a>.<o:p></o:p></span></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/ZRAP278MB08273D0F6112F2AD3F8300F7F4CDA%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/ZRAP278MB08273D0F6112F2AD3F8300F7F4CDA%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM</a>.<br />