Skip to content

CP2K 2026.2 container image

1. What this image is

firesimulations/gromacs:cp2k2026.2-r1 is CP2K 2026.2, standalone, CPU only, MPI (Open MPI 5.0.10) plus OpenMP (cp2k.psmp), built from the official release with CP2K's own toolchain script on Ubuntu 26.04. It is for density-functional and semi-empirical calculations. It contains no GPU code, no Intel MKL and no GROMACS (for QM/MM see the GROMACS with CP2K image). It runs on any x86-64 CPU (generic build). Linux amd64 only.

2. Tags and versions

Tag Contents
cp2k2026.2-r1 CP2K 2026.2 cp2k.psmp and small tools

Tag pattern for add-on images in this repository: <add-on><version>-r<N>.

A published tag never changes; a changed image gets the next -rN (tags and revisions). Digests and DOIs: release notes.

3. Get the image

docker pull firesimulations/gromacs:cp2k2026.2-r1
docker pull firesimulations/gromacs@sha256:<digest of the release note>   # byte-exact; preferred in papers

Without Docker Hub, download the archive from the Zenodo record of the tag and follow load an image from Zenodo. See also verify an image.

4. Quick start

docker run --rm firesimulations/gromacs:cp2k2026.2-r1 cp2k.psmp --version
docker run --rm --shm-size=1g -u "$(id -u):$(id -g)" -v "$PWD:/work" -e OMP_NUM_THREADS=2 firesimulations/gromacs:cp2k2026.2-r1 mpirun -np 4 cp2k.psmp -i input.inp -o output.out
docker run --rm --shm-size=1g -v "${PWD}:/work" -e OMP_NUM_THREADS=2 firesimulations/gromacs:cp2k2026.2-r1 mpirun -np 4 cp2k.psmp -i input.inp -o output.out

There is no entrypoint: the command follows the image name. The working directory is /work. As a normal user (-u) mpirun needs no extra flag; as root add --allow-run-as-root. Use --shm-size=1g with several MPI ranks (Docker's default shared memory is 64 MB). A failing CP2K run gives the container a non-zero exit status.

5. What is inside

Path Content
/opt/cp2k/bin cp2k.psmp, dumpdcd.psmp, xyz2dcd.psmp, graph.psmp
/opt/cp2k/lib, /opt/cp2k/share/cp2k/data libcp2k.so, basis sets and potentials (CP2K_DATA_DIR is set)
/opt/cp2k-toolchain/install/openmpi Open MPI 5.0.10 (mpirun, on PATH)
/opt/cp2k-toolchain/install/... OpenBLAS 0.3.33 and ELPA 2026.02.002 (the other libraries are linked statically)

Compiled in (cp2k.psmp --version): OpenMP, MPI (mpi_f08), ScaLAPACK, OpenBLAS, FFTW 3.3.11, Libint 2.13.1 (lmax 5; hybrid functionals), Libxc 7.0.0, ELPA 2026.02, libxs and libxsmm 2.0.0, DBCSR 2.10.0, spglib 2.7.0, Libvori, DFT-D4, s-dftd3, tblite 0.6.0 (xTB). Left out on purpose: libtorch, DeePMD, ACE, SIRIUS, SpFFT/SpLA, COSMA, HDF5/TREXIO, GauXC, GreenX, PLUMED, LibFCI, libvdwxc, SMEAGOL, DLA-Future, PEXSI.

CPU target: generic x86-64 (-march=x86-64 -mtune=generic), so the image runs on any x86-64 CPU. OpenBLAS (dynamic-arch kernels), FFTW and libxsmm (JIT) still pick fast code at run time; the compiler-generated CP2K code is not tuned for AVX2/AVX-512, so expect somewhat lower speed than a native build.

The complete package list is software-versions.txt in each Zenodo record; the SBOM is sbom.spdx.json.

6. Usage guide

# one machine, 4 MPI ranks x 2 OpenMP threads
docker run --rm --shm-size=1g -u "$(id -u):$(id -g)" -v "$PWD:/work" -e OMP_NUM_THREADS=2 firesimulations/gromacs:cp2k2026.2-r1 mpirun -np 4 cp2k.psmp -i input.inp -o output.out

# serial (OMP_NUM_THREADS defaults to 1 in the image)
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/work" firesimulations/gromacs:cp2k2026.2-r1 cp2k.psmp -i input.inp -o output.out

Example input used by the release check (an H2 molecule, PBE, SZV-MOLOPT-GTH):

&GLOBAL
  PROJECT h2
  RUN_TYPE ENERGY
&END GLOBAL
&FORCE_EVAL
  METHOD Quickstep
  &DFT
    BASIS_SET_FILE_NAME BASIS_MOLOPT
    POTENTIAL_FILE_NAME GTH_POTENTIALS
    &QS
      EPS_DEFAULT 1.0E-10
    &END QS
    &SCF
      EPS_SCF 1.0E-6
      MAX_SCF 30
    &END SCF
    &XC
      &XC_FUNCTIONAL PBE
      &END XC_FUNCTIONAL
    &END XC
  &END DFT
  &SUBSYS
    &CELL
      ABC 6.0 6.0 6.0
    &END CELL
    &COORD
      H 0.0 0.0 0.0
      H 0.0 0.0 0.74
    &END COORD
    &KIND H
      BASIS_SET SZV-MOLOPT-GTH
      POTENTIAL GTH-PBE-q1
    &END KIND
  &END SUBSYS
&END FORCE_EVAL

The output contains ENERGY| Total FORCE_EVAL ( QS ) energy [hartree] -1.108715654338347 (one rank, one thread, as measured in this image). For input syntax see the CP2K manual.

7. Input and output conventions

Item Value
Working directory /work
Threads OMP_NUM_THREADS (default 1) and mpirun -np
Data files /opt/cp2k/share/cp2k/data
Exit status non-zero on failure

8. Performance and resources

Choose ranks and threads explicitly and report them. The generic build is somewhat slower than a native build; add ranks and threads rather than expecting AVX-512 speed.

9. Verification

docker run --rm firesimulations/gromacs:cp2k2026.2-r1 cp2k.psmp --version

Expected: CP2K version 2026.2. Maintainers' checks before release (18 Nov 2026, Intel i7-13700, 8 CPUs): 31 of 31 image checks (version, the 13 compiled-in features, generic compile flags, no missing library, no compiler, mpirun -np 2 starts two ranks). CP2K regression tests in the selected directories QS/regtest-gpw-1, QS/regtest-hybrid-1, QS/regtest-hybrid-2, QS/regtest-elpa, QS/regtest-libxc, QS/regtest-dft-vdw-corr-1 and xTB/regtest-1: 99 of 99 correct. The complete suite (all directories whose features are compiled in, 2 ranks × 1 thread) was run in two parts because Docker dropped the container after 172 of 425 directories: in part 1 two directories (QS/regtest-pao-1, QS/regtest-dcdft-force) had runtime failures in the minutes when the container died and both reran clean (34 of 34); part 2 (the remaining 253 directories) gave 1824 of 1824 correct. No failed or wrong test remained.

The release pipeline additionally ran the image's smoke test as the image user and as uid 4242 on a read-only root file system, scanned the image for fixable critical or high vulnerabilities and for embedded secrets, and recorded the results in the release note and in smoke-test-report.txt of the Zenodo record.

10. Reproducibility checklist for a paper

Record: the tag, the digest and the version DOI of the release note; the exact command lines; the SHA-256 of every input file; OMP_NUM_THREADS and the rank count, and the full CP2K input. Results can differ in the last digits between different rank/thread layouts.

11. How to cite

Primary reference: this container image. If you use this image, cite its Zenodo record (the version DOI of the tag you used):

Noor, D. H. (2026). CP2K 2026.2 container image (Version cp2k2026.2-r1+doc2) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.24628446

@software{scdoc_cp2k_cp2k2026_2_r1_doc2,
  author    = {Noor, Dilwar Hossain},
  title     = {CP2K 2026.2 container image},
  version   = {cp2k2026.2-r1+doc2},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24628446},
  url       = {https://doi.org/10.5281/zenodo.24628446}
}

All versions of this image line: concept DOI 10.5281/zenodo.24615968. Each Zenodo record also contains CITATION.cff and CITATION.bib; the release notes list every tag.

Secondary references: the programs inside this image. Please also cite the original publications of the programs you used:

  • CP2K: Kühne, T. D. et al. (2020). CP2K: An electronic structure and molecular dynamics software package – Quickstep: Efficient and accurate electronic structure calculations. J. Chem. Phys. 152, 194103. https://doi.org/10.1063/5.0007045
  • the publications of the functionals, basis sets, pseudopotentials and dispersion corrections you use.

12. Licences and source offer

Component Licence
CP2K 2026.2 GPL-2.0-or-later
FFTW 3.3.11 GPL-2.0-or-later
Open MPI, OpenBLAS BSD-3-Clause
Libint, Libxc, ELPA, DBCSR, tblite, DFT-D4, s-dftd3 and others their own licences (see THIRD_PARTY_LICENSES.txt and the Zenodo record)

Source offer. The same unmodified source archives are also preserved in the Zenodo record 10.5281/zenodo.24615769 (file list and checksums in its SOURCES.md). Unmodified upstream sources: CP2K https://github.com/cp2k/cp2k/releases/download/v2026.2/cp2k-2026.2.tar.bz2 (SHA-256 f9bd86f580f57a53a0768c0045d1417f9f9a1d66d851ed7f662f496200043373); the dependencies were downloaded and checksum-verified by CP2K's own toolchain scripts (tools/toolchain of that release). No patches were applied.

Build options. Toolchain: install_cp2k_toolchain.sh --install-all --mpi-mode=openmpi --math-mode=openblas --with-gcc=system --with-dbcsr with ACE, DeePMD, libtorch, SIRIUS, SpFFT, SpLA, libvdwxc, SMEAGOL, GauXC, GreenX, TREXIO, HDF5, LibFCI, PLUMED and COSMA off. CP2K (CMake): -DCMAKE_BUILD_TYPE=Generic -DCP2K_USE_EVERYTHING=ON with the same optional packages off (and DLA-Future, PEXSI, openPMD, MiMiC). On request to the maintainer, the corresponding source will be provided for three years from the release date. The build recipe is not distributed.

13. Known limits and troubleshooting

  • GPU, Intel MKL and the optional packages listed in section 5 are not included.
  • The generic x86-64 build is slower than a native build.
  • Not tested: GPUs, several nodes.
  • The old 2023.12.03.cp2k tag (GROMACS 2023.3 with CP2K 2023.1 and Intel MKL) is a different, frozen image.

14. Changelog

Tag Date Change
cp2k2026.2-r1 2026-11-28 first release