Quantum ESPRESSO for XC40

What Is Quantum ESPRESSO?

Quantum ESPRESSO (QE) is a suite of codes for electronic structure calculations and materials research. This code uses Density Functional Theory calculations with periodic boundary conditions to estimate energies, forces, and other properties of atomic scale systems. QE runs in parallel (MPI and OpenMP) and is based on plane waves basis functions and pseudopotentials. QE is an open-source project at http://www.quantum-espresso.org/.

How to access Quantum ESPRESSO

Prebuilt QE binaries are provided on Theta under /soft/applications/quantum_espresso. These binaries are dynamically linked and require certain version of libraries to function. Please read the README file and load necessary modules.

If building your own QE is necessary, follow the instruction below.

Building on Theta

This recipe is verified on May 25th 2018 with QE-6.2.1.

QE uses autotools to create a make.inc file required to compile the code. First, obtain a copy of source code on the Theta login nodes.

We suggest compiling the code with Intel Fortran compiler (under Cray wrapper) and using Intel MKL for both linear algebra and FFT. Due to the conflict of MKL and libsci, libsci needs to be unloaded. Enabling wavefunction IO via hdf5 library is optional.

module unload cray-libsci
module load cray-hdf5-parallel

Inside the source code directory, QE can be configured with the follow command in a shell terminal:

./configure \
 --prefix=/home/myhome/mypath \
 MPIF90=ftn CC=cc --enable-openmp --with-scalapack=intel --with-hdf5=/opt/cray/pe/hdf5-parallel/ \
 --with-elpa-include=/soft/applications/elpa/elpa-2017.11.001/include/elpa-2017.11.001/modules \

To build the code, use ‘make’ and install it with ‘make install.’

Running QE Jobs on Theta

Below is an example of a submission script of running the binary pw.x of QE in Theta:

#COBALT -n 8
#COBALT -t 10
#COBALT -q default
#COBALT -A my_project
#COBALT -O my_test



echo "Running Cobalt Job $COBALT_JOBID."

aprun -n $PROCS -N $PROCS_PERNODE -cc depth -d $NTHREADS -j $HT $pw -in ./test.in &> ./out

This script file can be submitted as ‘qsub script.sh’, assuming you have a ‘test.in’ file in place.


QE User Manual 
Alternative Compilations of the Code