Here how to compile Quantum-ESPRESSO 7.3.1 on ohtaka at ISSP, the University of Tokyo.
First of all, make sure that the modules are loaded properly. In this tutorial, we are going to use the following modules (Intel fortran + Intel MPI):
1) oneapi_compiler/2023.0.0 2) oneapi_mkl/2023.0.0 3) oneapi_mpi/2023.0.0
To do this we need to execute
module load oneapi_compiler/2023.0.0
module load oneapi_mkl/2023.0.0
module load oneapi_mpi/2023.0.0
Let us first make directories for source codes, pseudopotentials, and calculations for Quantum-ESPRESSO in the home directory, for e.g.
$ mkdir -p QE/src
$ mkdir -p QE/pseudo
$ mkdir -p QE/out
In the ${HOME}/QE/src directory, type
$ wget https://gitlab.com/QEF/q-e/-/archive/qe-7.3.1/q-e-qe-7.3.1.tar.gz
In q-e-qe-7.2, execute the following
$ ./configure MPIF90=mpiifort --enable-openmp --with-scalapack=intel
Then type
$ make pw
Other programs can be found by just typing
$ make
I usually build PW as well as PP by typing
$ make pw pp
If you like to perform phonon calculations do
$ make ph
When submitting the job, do NOT forget to load the modules used for the build. In this case, the following may be written in your jobscript:
module load oneapi_compiler/2023.0.0 module load oneapi_mkl/2023.0.0 module load oneapi_mpi/2023.0.0
In addition, the following lines should be added, especially Intel MPI is used to build the program.
export FI_PROVIDER=psm3
ulimit -s unlimited