gethostbyname failed

Symptom

When the mpirun command is executed, the error message "gethostbyname failed" is displayed, as shown below.

Solution

Add the IP address and host name of the current node to the /etc/hosts file. For example, if the host name is HW-AI-LC-1-1 and the IP address is 172.16.0.100, add the following information to the /etc/hosts file:

172.16.0.100 HW-AI-LC-1-1