cd /path/to/CASE
wget https://codeload.github.com/QEF/benchmarks/zip/refs/heads/master -O benchmarks-master.zip
unzip benchmarks-master.zip cp -r benchmarks-master/other-inputs/water/* ./
mpirun --allow-run-as-root -np 2 -x OMP_NUM_THREADS=1 --mca btl ^openib pw.x -input ./pw.in 2>&1 | tee -a qe.log
“-np”表示测试使用的总进程数,这里写2是测试机器有2张显卡。
“-x OMP_NUM_THREADS=1”表示指定每个进程的线程数为1。
需要查看“qe.log”日志中的“WALL”数值,单位是“s”,数值越高性能越低,输出的结果如下图所示。