問題描述
MPI 要求在 localhost 上進行身份驗證 (MPI asks authentication on localhost)
I'm currently try to run an application on a single machine with 8 cores using mpirun ‑np 8. The executables run fine and it actually uses all the eight cores of the machine for the tasks, but the problem is that it says that
The authenticity of host '(name of the local machine) 127.0.1' can't be established.
ECDSA key fingerprint is (fingerprint follows)
How can I avoid this problem? I guess this happens because MPI interprets each core as a node in a distributed cluster, is there some way to "tell" MPI that the cores are all on the same machine and therefore no authentication is needed?
Thanks for the help!
參考解法
方法 1:
This isn't an MPI problem. You're using the incorrect IP address. You're using 127.0.1
when it should be 127.0.0.1
(or just localhost
).
Also, make sure that you can ssh
to localhost
without requiring a password.
(by Mutewinter、Wesley Bland)