[CP2K:6011] Improve the speed of QS in cp2k

Iain Bethune ibet... at epcc.ed.ac.uk
Fri Jan 16 15:16:17 UTC 2015

Dear Geng,

There are a couple of areas to consider when you are interested in performance, firstly the physics (which others will be more able to comment on), and secondly, computational.

Physical parameters:
* choosing the cheapest representation of your system that gives correct results e.g. choosing an appropriate basis set (Gaussian), and also an appropriately sized plane-wave expansion (see http://www.cp2k.org/howto:converging_cutoff )

* SCF settings - choosing an appropriate convergence threshold, and diagonalization algorithm (or use OT for non-metallic systems for much greater performance, with a good preconditioner) see http://www.cp2k.org/howto:static_calculation for some of the basics

Computational aspects:
* If you are running in parallel with MPI do some tests (on a shortened version of your problem) to determine how many CPU cores you can effectively use.  As a rule-of-thumb, you might expect reasonable scaling up to nprocs ~ natoms for typical settings.  see http://cp2k.org/performance and http://www2.epcc.ed.ac.uk/~ibethune/files/cp2k_cug2014.pdf for benchmark data.

* Build the code with high compiler optimisation (e.g. -O3) and an optimised BLAS/LAPACK library (e.g. MKL, GotoBLAS, ATLAS)

* Build the code with the optional performance-critical libraries libsmm (in cp2k/tools/build_libsmm) and libgrid (cp2k/tools/autotune_grid).

Before going to far down any of these areas, take a look at the timing report which is printed at the end of your CP2K job output.  This will give you some information about which parts of the code are taking the most time, and therefore where to invest your time tweaking to get the best performance.


- Iain


Iain Bethune
Project Manager, EPCC

Email: ibet... at epcc.ed.ac.uk
Twitter: @IainBethune
Web: http://www2.epcc.ed.ac.uk/~ibethune
Tel/Fax: +44 (0)131 650 5201/6555
Mob: +44 (0)7598317015
Addr: 2404 JCMB, The King's Buildings, Peter Guthrie Tait Road, Edinburgh, EH9 3FD

> On 16 Jan 2015, at 13:32, sungen... at gmail.com wrote:
> Hello, evergyone 
>    Could anyone give any generic comments on how to improve the DFT ( I mean the speed), 
>    calculations in cp2k.
>    I want to use the cp2k studying surfaces of metals or oxides.  I read the documents , and I can run the structure optimization successfully,
>    But too many parameters for consideration.  I want to know if any parameter is the most important, and it's need carefully to be tested.
>  Thanks !
> Geng Sun
> -- 
> You received this message because you are subscribed to the Google Groups "cp2k" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns... at googlegroups.com.
> To post to this group, send email to cp... at googlegroups.com.
> Visit this group at http://groups.google.com/group/cp2k.
> For more options, visit https://groups.google.com/d/optout.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2017 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20150116/599ad2fe/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20150116/599ad2fe/attachment.ksh>

More information about the CP2K-user mailing list