No description
  • Fortran-Free-Form 86.3%
  • C 7.6%
  • Fortran 2.6%
  • Python 1.5%
  • Shell 0.7%
  • Other 1.2%
Find a file
2026-11-27 08:12:40 +08:00
.fmf fedora: Optimize builds (#3268) 2024-03-28 21:07:23 +01:00
.github/workflows Prepare pycp2k 0.3.0 for PyPI release (#6420) 2026-10-30 03:23:38 +08:00
benchmarks Precommit: misc checks (#6656) 2026-11-25 17:59:55 +08:00
ci Docker: Add NUM_PACKAGES build argument for Spack builds (#6657) 2026-11-24 13:51:07 +01:00
cmake CMake: Fix target name in the guard of cov-genhtml (#6619) 2026-11-20 15:18:11 +01:00
data BASIS_RI_AUG_MOLOPT_GTH: rename the Ca RI sets of aug-SZV-MOLOPT-GTH-tier-2-SR (#6663) 2026-11-25 18:00:57 +08:00
docs Motion: Add FIRE and FIRE2 optimizers (#6568) 2026-11-25 18:46:08 +01:00
python Precommit: misc checks (#6656) 2026-11-25 17:59:55 +08:00
src Block the GAPW meta-GGA one-center kinetic energy density and potential contractions (#6692) 2026-11-27 08:12:40 +08:00
tests Migrate matchers.py to matchers.toml (#6687) 2026-11-27 03:20:42 +08:00
tools make_cp2k: Treat CMake developer warnings as errors (-Werror=dev) (#6669) 2026-11-25 14:49:05 +01:00
.dockerignore Update list of folders which should not be copied into a container (#5191) 2026-05-14 13:42:29 +02:00
.git-blame-ignore-revs Add 37ecbfb (#6392) to .git-blame-ignore-revs (#6398) 2026-10-28 06:15:28 +08:00
.gitattributes Add H USPP regression data and optional UPF downloads (#6185) 2026-10-30 01:27:51 +01:00
.gitignore grid performance improvements (#6513) 2026-11-12 23:22:45 +08:00
.packit.yaml Packit: Use label requirement for copr_build job in PR (#5785) 2026-08-20 12:07:36 +02:00
CMakeLists.txt Reimplement the local FFT-backend in C (#6475) 2026-11-23 18:32:11 +08:00
CMakePresets.json Conventions: Add clang-tidy (#6544) 2026-11-13 20:12:36 +01:00
CODEOWNERS make_cp2k.sh: Run build steps as separate scripts using config files (#6571) 2026-11-19 13:39:37 +01:00
CONTRIBUTING.md Docs: add troubleshooting.md, convergence.md, CONTRIBUTING.md symbolic link, and contributions to changelog (#5522) 2026-07-10 08:59:09 +02:00
INSTALL.md Restructure installation documentations, create ./docs/getting-started/installation.md as an umbrella entry (#5795) 2026-08-24 14:25:45 +02:00
LICENSE LICENSE: initial commit 2018-10-02 16:53:44 +02:00
make_cp2k.sh Docker: Add NUM_PACKAGES build argument for Spack builds (#6657) 2026-11-24 13:51:07 +01:00
make_pretty.sh Add timeout flag and allow for flags using make_pretty.sh 2026-02-27 20:42:16 +01:00
README.md Link Debian and Ubuntu badges to their package trackers (#6402) 2026-10-28 14:42:51 +08:00
SUPPORT.md Refactor some FAQ to a standalone SUPPORT.md (#6102) 2026-09-28 13:23:03 +02:00

CP2K

Release Status Debian Status Fedora Status Ubuntu Status Homebrew Status Docker Status Spack Status Conda Status

CP2K is a quantum chemistry and solid state physics software package that can perform atomistic simulations of solid state, liquid, molecular, periodic, material, crystal, and biological systems. CP2K provides a general framework for different modeling methods such as DFT using the mixed Gaussian and plane waves approaches GPW and GAPW. Supported theory levels include DFT, MP2, RPA, GW, tight-binding (xTB, DFTB), semi-empirical methods (AM1, PM3, PM6, RM1, MNDO, ...), and classical force fields (AMBER, CHARMM, ...). CP2K can do simulations of molecular dynamics, metadynamics, Monte Carlo, Ehrenfest dynamics, vibrational analysis, core level spectroscopy, energy minimization, and transition state optimization using NEB or dimer method.

CP2K is written in Fortran 2008 and can be run efficiently in parallel using a combination of multi-threading, MPI, and GPU acceleration (CUDA for NVIDIA GPUs, HIP/ROCm for AMD GPUs, and OpenCL).

Downloading CP2K source code

For end users, the preferred method is to go to Releases and download and extract one of the versioned tarballs cp2k-X.Y.tar.bz2.

For developers, the preferred method is to fork the cp2k/cp2k repository and download via git clone. To clone the current master (development version):

git clone https://github.com/cp2k/cp2k.git cp2k

To clone a release version vx.y:

git clone -b support/vx.y --recursive https://github.com/cp2k/cp2k.git cp2k

Install CP2K

The installation instructions in the CP2K manual provide several methods for installing CP2K with dependencies:

  • CP2K.org for showcases of scientific work, tutorials, exercises, presentation slides, etc.
  • The manual with descriptions of all the keywords for the CP2K input file
  • The dashboard to get an overview of the currently tested architectures
  • The Google group to get help if you could not find an answer in one of the previous links
  • Acknowledgements for list of institutions and grants that help to fund the development of CP2K

Directory organization

  • src: The source code
  • data: Simulation parameters e.g. basis sets and pseudopotentials
  • docs: The markdown source pages for documentations that is rendered as the manual
  • tests: Inputs for tests and regression tests
  • tools: Mixed collection of useful scripts related to CP2K
  • benchmarks: Inputs for benchmarks