cd /path/to/qe
tar -zxvf q-e-qe-6.8.tar
cd q-e-qe-6.8/
./configure --with-cuda=yes --with-cuda-runtime=11.4 --with-cuda-cc=80 --enable-openmp --with-scalapack=no
“--with-cuda-cc=80”请根据当前机器的显卡架构进行修改,此处测试机器显卡是v100。
make -j32 pwall
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
ll /path/to/qe-gpu-6.7/bin/pw.x
回显信息中包含“pw.x”文件,表示已生成可执行文件。
export PATH=/path/to/qe/bin/:$PATH