Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the main program installation directory.
cd /path/to/qe
- Decompress the installation package.
tar -zxvf q-e-qe-6.8.tar
- Go to the directory generated after the decompression.
cd q-e-qe-6.8/
- Perform the compilation.
./configure --with-cuda=yes --with-cuda-runtime=11.4 --with-cuda-cc=80 --enable-openmp --with-scalapack=no
Modify --with-cuda-cc=80 based on the graphics card architecture of the current host. In this example, the graphics card is V100.
make -j32 pwall
- If the compilation host is not connected to the Internet, download the devicexlib-master.tar.gz package and upload it to the compilation host. After the compilation is complete, run the make pp -j32 command.
mv devicexlib-master.tar.gz /path/to/qe-gpu-6.7/external devicexlib.tar.gz tar xzf devicexlib.tar.gz --strip-components=1 export F90FLAGS="-FAST -mCACHE_align -Mpreprocess -Mlarge_arrays" ./configure FC=pgf90 CC=pgcc --with-cuda=no --with-cuda-cc= --with-cuda-runtime= --disable-parallel --enable-cuda-env-check=no make pp -j32
- If error information similar to the following is displayed, the link library configuration is incorrect. You need to modify the make.inc file.

- Open the make.inc file.
vi make.inc
- Press i to enter the edit mode and add LD_LIBS = -lcurand to the following location:

- Press Esc, type :wq!, and press Enter to save the settings and exit.
- Open the make.inc file.
- If the compilation host is not connected to the Internet, download the devicexlib-master.tar.gz package and upload it to the compilation host. After the compilation is complete, run the make pp -j32 command.
- Check whether an executable file is generated.
ll /path/to/qe-gpu-6.7/bin/pw.x
If the command output contains the pw.x file information, the executable file has been generated.
- Set the environment variables.
export PATH=/path/to/qe/bin/:$PATH
Parent topic: QE 6.8 Porting Guide (CentOS 8.2)