CP2K: Difference between revisions

From RCSWiki
Jump to navigation Jump to search
Line 37: Line 37:
= CP2K on ARC =
= CP2K on ARC =


CP2K application is available on on ARC in forms of
Various versions of CP2K software package is available on on ARC as
* '''Natively installed''' applications, or
* '''Natively installed''' application -- the application is '''compiled and built on ARC''' using source codes.
* '''Apptainer containers'''.  
* '''Apptainer containers''' -- Containerized version of '''CP2K is compiled by the developers''' and provided '''as-is''' for downloads.  


== Natively Installed CP2K ==
== Natively Installed CP2K ==

Revision as of 17:51, 15 September 2025

Background


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 CUDA.

Types of Executable files

CP2K provides a single and only Makefile in cp2k/makefiles/ directory. The actual compilation settings are set in cp2k/arch/arch.version files. The arch file is included in the Makefile during a building run.

Conventionally, there are four versions:

  • sopt - serial
  • popt - parallel (only MPI) - recommended for general usage
  • ssmp - parallel (only OpenMP)
  • psmp - parallel (MPI + OpenMP)

CP2K on ARC

Various versions of CP2K software package is available on on ARC as

  • Natively installed application -- the application is compiled and built on ARC using source codes.
  • Apptainer containers -- Containerized version of CP2K is compiled by the developers and provided as-is for downloads.

Natively Installed CP2K

CP2K Official Containers

The more recent versions of CP2K installed on ARC have been built as Apptainer containers based off of the official docker containers available on Dockerhub.

The path to the directory with the container files is /global/software/cp2k/containers.

To see what versions of containerized CP2K are available, simply list the content of the corresponding directory:

$ ls -l /global/software/cp2k/containers/

Running commands from the containers

You can run a command from the container of your choice with the command line like this:

$ apptainer exec <container> <command> [command arguments]

Links

ARC Software