Running and Verification
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the test directory.
cd /path/to/SPECFEM3D_ GLOBE/specfem3d_globe-7.0.0
- Perform the single-node test.
mpirun --allow-run-as-root -np 64 --mca btl ^openib ./bin/xmeshfem3D mpirun --allow-run-as-root -np 64 --mca btl ^openib ./bin/xspecfem3D vim OUTPUT_FILES/output_solver.txt
If the following information is displayed, the running is successful:

- If the test must be performed on more than one node, edit the hostfile file.
- Open the hostfile file.
vi hostfile
- Press i to enter the edit mode and modify the file as follows:
Node1 Node2
Node1 and Node2 are the node names. Change them based on the site requirements and ensure that the nodes can ping each other.
- Press Esc, enter :wq!, and press Enter to save the changes and exit.
- Open the hostfile file.
- Perform the multiple-node test.
mpirun --allow-run-as-root -x PATH=$PATH -x LD_LIBRARY_PATH=$LD_LIBRARY_PATH --hostfile hostfile -np 32 –N 16 --mca btl ^openib ./bin/xmeshfem3D mpirun --allow-run-as-root -x PATH=$PATH -x LD_LIBRARY_PATH=$LD_LIBRARY_PATH –np 32 -N 16 --mca btl ^openib ./bin/xspecfem3D
Parameter
Description
-np
Total number of processes used in the test.
-N
Number of processes running on each server.
--hostfile
Name of the node to be used.
Parent topic: SPECFEM3D GLOBE 7.0.0 Porting Guide (openEuler 21.03)