view raw
Han Zhengzu Han Zhengzu - 8 months ago 24
Linux Question

Error “ssh: Name or service not known” while using mpirun in Linux

I have successfully compile MPICH library in my linux cluster and also export the variable in


export PATH="$/disk2/usr/lib/mpich/bin:$PATH"

But while I use
for multi-core computation. The error would appear like this:

ssh: Xiehost: Name or service not known

Xiehost is my linux cluster's name. And I use
to control it.

was successfully execute with one core. And
is essential for my project with better efficiency.

Any advice would be appreciate.


It seems like your OS doesn't now how to resolve a name Xiehost. Try adding in /etc/hosts (Windows/system32/drivers/etc/hosts) a pair of values IP-address Xiehost