Running and Verification
- Determine the number of running processes based on the node configuration.
- If multiple nodes are running, configure the network environment:
- In the /etc/hosts file, add the IP addresses and host names of the nodes.
- Enable SSH password-free login between the nodes.
- Disable the firewall and ensure that clients and servers are not disconnected.
- NWChem provides multiple test cases. Select one that is suitable for your servers. This section uses siosi5.nw as an example.
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the test case directory.
cd /path/to/NWCHEM/nwchem-6.8.1-release/web/benchmarks/dft
- Create a hostfile file.
- Create hostfile.
vi hostfile
- Press i to enter the insert mode and add the following content:
Node1 Node2
Node1 and Node2 are the names of the nodes where the code is executed. Change them based on your requirements and ensure that the nodes can ping each other. Enable SSH password-free login between the nodes.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Create hostfile.
- Perform the computing.
- Single node
mpirun --allow-run-as-root -N 8 -x PATH=$PATH -x LD_LIBRARY_PATH=$LD_LIBRARY_PATH -mca btl ^openib nwchem siosi5.nw -v 2>&1 | tee NWChem_examples.log
The following figure shows the command output.

- Dual nodes
mpirun --allow-run-as-root -N 8 -x PATH=$PATH -x LD_LIBRARY_PATH=$LD_LIBRARY_PATH -mca btl ^openib --hostfile hostfile nwchem siosi5.nw -v 2>&1 | tee NWChem_examples.log
The following figure shows the command output.

- hostfile indicates the list of node names to be used. In this example, two nodes are used.
- 8 indicates the number of processes running on each node. You can change the value based on the node configuration.
- Check the value of Total times cpu (unit: s) in the NWChem_examples.log file. A smaller value indicates better performance.
- Single node
Parent topic: NWChem 6.8.1 Porting Guide (openEuler 21.03)