Following are simple instructions, derived from notes by Kaichen Xie. These notes are not meant to replace the detailed instructions given in the official Quantum ESPRESSO (QE) User Guide! The official website and mailing list are great resources for troubleshooting!
In the code below, please change variables such as your_username, your_group_name and file names appropriately!
- Log into Klone:
ssh your_username@klone.hyak.uw.edu
- Request a
computenode (make sure you get enough memory):
srun -A your_group_name -p compute -N 1 --mem=100G --time=1:00:00 --pty bash
- From the official GitHub page, download the version of QE that you wish to compile (replace the link below accordingly):
wget https://github.com/QEF/q-e/archive/qe-6.6.tar.gz
- Extract the downloaded archive (replace file name accordingly):
tar -xvf qe-6.6.tar.gz
- We will use the Intel compiler in this example. Use
module avail intelto find the compiler, and then load it:
module load intel/oneAPI/2021.1.1
- If you wish to compile QE with extra modules (such as HDF5), now is the time to load them.
- Then, navigate into the extracted folder and run the configuration script, making sure to apply any flags (like
--with-scalapackbelow):
./configure --enable-parallel --with-scalapack --with-hdf5=yes
- Note that above,
./configureis the only command really necessary. Please see the official User Guide for more information on flags. - Once configured, run:
make all
- If the above step fails, try re-running
./configurewith proper settings, and resetting themakestage by runningmake clean, before runningmake allagain. - You have now compiled QE! In subsequent scripts/calculations, please ensure you load the modules you loaded above, and that you call routines (such as
pw.x) from the installation path (e.g./gscratch/your_group_name/your_username/some_folder/q-e-qe-6.7.0/bin/pw.x). - Congratulations!
100 views