运行和验证

操作步骤

  1. 使用PuTTY工具,以root用户登录服务器。
  2. 执行以下命令进入算例文件夹。

    cd /path/to/MINIDFT/MiniDFT-MiniDFT-1.1.1/benchmark

  3. 执行以下命令设置线程。

    export OMP_NUM_THREADS=1

  4. 执行以下命令进行测试。

    mpirun -np 96 --allow-run-as-root -mca btl ^openib ../src/mini_dft -in small.in -nbgrp 4 > small.log

    查看“small.log”日志中的“Benchmark_Time”的值,单位是“s”,数值越小性能越优。

    输出的结果样例如图1所示。

    图1 结果样例