NERSCPowering Scientific Discovery Since 1974




The BerkeleyGW Package is a set of computer codes that calculates the quasiparticle properties and the optical responses of a large variety of materials from bulk periodic crystals to nanostructures such as slabs, wires and molecules. The package takes as input the mean-field results from various electronic structure codes such as the Kohn-Sham DFT eigenvalues and eigenvectors computed with PARATECQuantum ESPRESSOSIESTA,Octopus, or TBPW (aka EPM).

How to Access BerkeleyGW

NERSC uses modules to manage access to software. To use the default version of BerkeleyGW, type:

% module load berkeleygw

Using BerkeleyGW on Hopper

There are two ways of running BerkeleyGW on Hopper: submitting a batch job, or running interactively in an interactive batch session.

Sample Batch Script for BerkeleyGW on Hopper

There is a full example ready to submit at NERSC that can be accessed in the following way:

% module load berkeleygw/1.0.3


% cd $SCRATCH/NERSC_silicon

% qsub test_bgw.pbs 


The Main BerkeleyGW website and documenation information can be found here.

Compilation Instructions

Some advanced users may be interested in tweaking the BerkeleyGW build parameters and building BerkeleyGW themselves in their own directory. In order to aid in this process, and to provide a greater degree of transparency, the build instructions for the BerkeleyGW module are listed below. The following procedure was used to build BerkeleyGW on Hopper.

% cp config/

% cp (for complex version)

% make all


PackagePlatformCategoryVersionModuleInstall DateDate Made Default
BerkeleyGW cori applications/ material sciences 1.2 berkeleygw/1.2 2016-06-29 2016-07-01
BerkeleyGW cori applications/ material sciences 1.2.knl berkeleygw/1.2.knl 2017-06-02
BerkeleyGW edison applications/ material sciences berkeleygw/ 2017-08-09 2017-08-09
BerkeleyGW edison applications/ material sciences berkeleygw/ 2018-02-12 2018-02-12