Here how to compile Quantum-ESPRESSO 7.2 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, as I found this is the safe option.
1) oneapi_compiler/2023.0.0 2) oneapi_mkl/2023.0.0 3) openmpi/4.1.5-oneapi-2023.0.0-classic
To do this we need to execute
module load oneapi_compiler/2023.0.0 module load oneapi_mkl/2023.0.0 module load openmpi/4.1.5-oneapi-2023.0.0-classic
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
$ git clone -b 'qe-7.2' --depth 1 https://gitlab.com/QEF/q-e.git qe-7.2
If "qe-7.2" is not specified, "q-e" may be generated.
In qe-7.2, execute the following
$ ./configure MPIF90=mpifort --enable-openmp
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