---
title: 运行和验证
description: "1. 使用PuTTY工具，以root用户登录服务器。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengqe_02_0032.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengqe_02_0032.html
indexId: 1f78fb6c134b0e2f6b49859386db955f455f82e4ab7199eb89787340414ae6e364
---
# 运行和验证

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令进入测试目录。

```
cd
/path/to/CASE
```


3. 执行以下命令下载测试算例，使用SFTP工具将测试算例上传至服务器“/path/to/CASE”目录。

```
wget https://codeload.github.com/QEF/benchmarks/zip/refs/heads/master -O
benchmarks-master.zip
```


4. 执行以下命令解压测试算例包，并将需要的文件拷贝到“/path/to/CASE”目录。

```
unzip
benchmarks-master.zip
cp
-r benchmarks-master
/other-inputs/water/* ./
```


5. 执行以下命令运行QE程序。

```
mpirun --allow-run-as-root -np
-x OMP_NUM_THREADS=
--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”，数值越高性能越低，输出的结果如下图所示。
