我要评分
获取效率
正确性
完整性
易理解

Running and Verifying deal.II

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to switch to the directory where the test case is stored:
    cd /path/to/deal.II/examples/step-23
  3. Run the following commands to compile the step-23 test case:
    cmake .
    make
  4. Run the following command to create the hostfile file and add node information:
    echo -e 'node1\nnode2\n\nnodex' > /path/to/HOSTFILE
    • In the preceding command, node1, node2, ..., and nodex indicate the host names of the nodes. You can run the hostname command to query the host names. \n indicates a newline character.
    • This step is mandatory when multiple nodes are running and can be skipped when only one node is running.
  5. Run the following command to perform the step-23 test case:
    • Single-node:
      { time make run ; } 2>&1 |tee -a test.out
    • Multi-node:
      { time mpirun --allow-run-as-root -mca btl ^openib --hostfile /path/to/HOSTFILE -x OMP_NUM_THREADS=1 -x PATH -x LD_LIBRARY_PATH -N 2 ./step-23 ; } 2>&1 |tee -a test.out

    Check the value of real in the test.out log. A smaller value indicates better single-core performance.

    Figure 1 is an example of the output result.

    Figure 1 Result example