GPAW Guide

From Storrs HPC Wiki
Jump to: navigation, search
Author GPAW community
Source GitLab
Category Electronic structure theory
Help docs
mailing list

GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

SLURM script

#SBATCH --partition debug
#SBATCH --ntasks 2
#SBATCH --output out.gpaw

# Clear the old SLURM output.
echo -n > out.gpaw

# Record debug information about our job.
scontrol show job ${SLURM_JOB_ID}

# Load the GPAW module.
gpaw_prereq=$(module show gpaw/${gpaw_version} |& sed -n 's#prereq##p')
module purge
module load ${gpaw_prereq} gpaw/${gpaw_version}
module list
# Disable OpenMPI warnings about creating forks and not using GPU.
export \
    OMPI_MCA_mpi_warn_on_fork=0 \

# Get the exercise file described in
wget -nc

srun -n ${SLURM_NTASKS} \
     gpaw-python \

After the job completes, you should see two output files 0.txt and 1.txt for the 2 parallel calculations and at the end of your out.gpaw file you should see the result of "Atomization energy: -10.6382 eV".

This particular example was only able to take advantage of 2 CPU cores. For your own calculation you may wish to change the highlighted lines as appropriate.