MPI要求在本地主机上进行身份验证

Mut*_*ter 2 multicore localhost mpi

我目前正在尝试使用mpirun -np 8在具有8个内核的单台计算机上运行应用程序。可执行文件运行良好,并且实际上将计算机的所有八个内核用于任务,但是问题是它说

    The authenticity of host '(name of the local machine) 127.0.1' can't be established.
    ECDSA key fingerprint is (fingerprint follows)
Run Code Online (Sandbox Code Playgroud)

如何避免这个问题?我猜这是因为MPI将每个内核解释为分布式集群中的一个节点,是否有某种方式可以“告诉” MPI内核都在同一台计算机上,因此不需要身份验证?

谢谢您的帮助!

Wes*_*and 5

这不是MPI问题。您使用的IP地址不正确。您正在使用127.0.1应该使用的时间127.0.0.1(或仅使用localhost)。

此外,请确保您可以sshlocalhost无需密码。