Skip to content
NAISS Logo Allocations Support Training Software naiss.se

Cp2k

How to use on Arrhenius

The CP2K installation contained in this module was built with support for the programs and libraries ELPA, Libint-CP2K, libvori, libxc, libxsmm, PLUMED, and spglib.

To load the CP2K module for CPU nodes

ml CP2K/2026.2-gcc-2026.03-mpich-eb
Below follows an example job script for CP2K, for running on a half CPU node using 16 MPI ranks and 8 threads.

#!/bin/bash
#SBATCH -J CP2K-job
#SBATCH -A <your-project-account>
#SBATCH -p cpu
#SBATCH -t 4:00:00
#SBATCH --ntasks-per-node=16
#SBATCH --cpus-per-task=8

ml CP2K/2026.2-gcc-2026.03-mpich-eb

export OMP_NUM_THREADS=8

mpprun cp2k.psmp -i inputfile.inp -o logfile.log

Assuming the script is named jobscriptCP2K.sh, it can be submitted using

sbatch jobscriptCP2K.sh