Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the QE installation package directory.
cd /path/to/QE
- Decompress the QE installation package.
tar -xvf qe-6.4.1.tar.gz
- Go to the directory generated after the decompression.
cd q-e-qe-6.4.1/
- Configure the dependency package environment.
export BLAS_LIBS="-L/path/to/OPENBLAS/lib -lopenblas" export LAPACK_LIBS="-L/path/to/OPENBLAS/lib -lopenblas" export SCALAPACK_LIBS="-L/path/to/SCALAPACK -lscalapack" export DEFS="__PGI"
- Perform configuration.
./configure --prefix=/opt/software/install/QE --enable-openmp ARCH=arm F77=flang F90=flang FC=flang CC=clang CFLAGS="-O3 -g -D__PGI -mcpu=native" FFLAGS="-O3 -g -D__PGI -mcpu=native" LDFLAGS="$LDFLAGS" MPIF90=mpifort MPIF77=mpifort CC=mpicc
- Perform the compilation.
make -j 2 pwall make install
- Declare the environment variables.
export PATH=/path/to/QE/bin:$PATH
Parent topic: QE 6.4.1 Porting Guide (openEuler 21.03)