Running and Verifying deal.II
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to switch to the directory where the test case is stored:
cd /path/to/deal.II/examples/step-23
- Run the following commands to compile the step-23 test case:
cmake . make
- 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.
- 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.
- Single-node:
Parent topic: deal.II 9.1.1 Porting Guide (CentOS 7.6)
