https://www.vasp.at/wiki/index.php?title=Performance_issues,_try_NCORE,_KPAR,_ALGO,_LREAL&feed=atom&action=historyPerformance issues, try NCORE, KPAR, ALGO, LREAL - Revision history2024-03-28T17:19:44ZRevision history for this page on the wikiMediaWiki 1.40.1https://www.vasp.at/wiki/index.php?title=Performance_issues,_try_NCORE,_KPAR,_ALGO,_LREAL&diff=15240&oldid=prevSchlipf at 13:54, 6 April 20222022-04-06T13:54:49Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:54, 6 April 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l36">Line 36:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>----</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>----</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Common Pitfalls]]</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Common Pitfalls<ins style="font-weight: bold; text-decoration: none;">]][[Category:Performance]][[Category:Parallelization</ins>]]</div></td></tr>
</table>Schlipfhttps://www.vasp.at/wiki/index.php?title=Performance_issues,_try_NCORE,_KPAR,_ALGO,_LREAL&diff=11993&oldid=prevMiranda.henrique at 07:39, 5 February 20212021-02-05T07:39:59Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 07:39, 5 February 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l15">Line 15:</td>
<td colspan="2" class="diff-lineno">Line 15:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>On massively parallel systems and modern multi-core machines we, therefore, strongly recommend to set </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>On massively parallel systems and modern multi-core machines we, therefore, strongly recommend to set </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> NCORE = 2 <del style="font-weight: bold; text-decoration: none;">- </del>number-of-cores-per-socket (or number-of-cores-per-node)</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> NCORE = 2 <ins style="font-weight: bold; text-decoration: none;">up to </ins>number-of-cores-per-socket (or number-of-cores-per-node)</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>Miranda.henriquehttps://www.vasp.at/wiki/index.php?title=Performance_issues,_try_NCORE,_KPAR,_ALGO,_LREAL&diff=11685&oldid=prevVaspmaster at 11:43, 3 November 20202020-11-03T11:43:59Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:43, 3 November 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l36">Line 36:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>----</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>----</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Category:<del style="font-weight: bold; text-decoration: none;">Calculational issues</del>]]</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Category:<ins style="font-weight: bold; text-decoration: none;">Common Pitfalls</ins>]]</div></td></tr>
</table>Vaspmasterhttps://www.vasp.at/wiki/index.php?title=Performance_issues,_try_NCORE,_KPAR,_ALGO,_LREAL&diff=11653&oldid=prevKresse: Created page with "Many user have difficulties to make good choices for various computational and technical parameters, resulting in suboptimal performance. Here is a very brief outline which ta..."2020-10-14T15:01:34Z<p>Created page with "Many user have difficulties to make good choices for various computational and technical parameters, resulting in suboptimal performance. Here is a very brief outline which ta..."</p>
<p><b>New page</b></p><div>Many user have difficulties to make good choices for various computational and technical parameters, resulting in suboptimal performance. Here is a very brief outline which tags can make a difference performance wise.<br />
<br />
Nowadays computations are usually performed on multi-core machines. Two tags are relevant to optimize the performance on multi-core machines: {{TAG| KPAR}} and {{TAG| NCORE}}.<br />
<br />
Using the tag {{TAG|KPAR}}, the k-points are distributed in a round-robin fashion onto<br />
the compute cores. A group of ''N''=(total number of cores/{{TAG|KPAR}}) cores jointly work on a group of '''k'''-points.<br />
Within this group of ''N'' cores the usual parallelism over bands and/or plane wave coefficients can be used. {{TAG|KPAR}} is particularly efficient for small unit cells<br />
and many k-points and it causes essentially no communication overhead. For small until cells and few atoms in the unit cell, one often achieves the best performance by setting <br />
<br />
{{TAG|KPAR}} = total-number-of-cores.<br />
<br />
<br />
{{TAG|NCORE}} determines how many cores share the work on an individual orbital. The current default is {{TAG|NCORE}}=1, meaning that one orbital is treated by one core. <br />
{{TAG| NCORE}}=1 is the optimal setting only for small unit cells, and platforms with a small communication bandwidth. However, this mode requires a lot of memory for large systems, because the non-local projector functions must be stored on each core. In addition, substantial all-to-all communications are required to orthogonalize the bands. <br />
On massively parallel systems and modern multi-core machines we, therefore, strongly recommend to set <br />
<br />
NCORE = 2 - number-of-cores-per-socket (or number-of-cores-per-node)<br />
<br />
<br />
For large unit cells, this can improve the performance by up to a factor four compared to the default. Ideally, {{TAG|NCORE}} should be a factor of the number-of-cores-per-socket (or number-of-cores-per-node), since this reduces communication between the sockets or nodes. The best value {{TAG|NCORE}} depends somewhat on the number of atoms<br />
in the unit cell. Values around 4 are usually ideal for 100 atoms in the unit cell. For very large unit cells (more than 400 atoms) values around 12-16 are often optimal. If you perform long and expensive simulations, please make your own tests.<br />
<br />
<br />
For large unit cells (more than 50-100 atoms), it is usually expedient to use real space<br />
projects {{TAG|LREAL}} and change to {{TAG| ALGO}}= Fast<br />
<br />
ALGO = Fast<br />
LREAL = Auto<br />
<br />
{{TAG| ALGO}} does not change the predicted energy, but uses a more efficient (but slightly less robust) algorithm for the optimization of the electronic degrees of freedom. <br />
{{TAG| LREAL}} slightly changes the energy by up to 1 meV/atom, but can greatly improve the performance of VASP for large unit cells. Note, though that in order to calculate relative energies or adsorption energies on surface, one should stick to one and the same setting for <br />
{{TAG| LREAL}}. <br />
<br />
<br />
<br />
<br />
----<br />
[[Category:Calculational issues]]</div>Kresse