PMIx 服务器的侦听器线程启动失败。我们无法继续

问题描述 投票:0回答:1

我在 ubuntu 上使用 termux。我需要运行一个 python 程序。但是我收到以下错误。

root@localhost:~/capstone/mpi# mpirun --allow-run-as-root -np 1 python3 index.py
[localhost:18945] opal_ifinit: ioctl(SIOCGIFHWADDR) failed with errno=13
[localhost:18945] pmix_ifinit: ioctl(SIOCGIFHWADDR) failed with errno=13
[localhost:18945] ptl_tool: problems getting address for index 122 (kernel index -1)
--------------------------------------------------------------------------
The PMIx server's listener thread failed to start. We cannot
continue.
--------------------------------------------------------------------------

Python代码:

from mpi4py import MPI

comm = MPI.COMM_WORLD
worker = comm.Get_rank()
size = comm.Get_size()

print(f"Worker {worker} of Size {size}")

请帮助我。非常感谢。

我用命令执行了上面的代码,并给出了上面的错误

mpirun --allow-run-as-root -np 1 python3 index.py
openmpi termux
1个回答
0
投票

我刚刚在 macOS 上遇到了这个问题,尽管命令之前运行没有问题,但还是出现同样的错误。唯一改变的是:我没有连接到任何网络。

显然,在 macOS 上,用于在本地运行进程的字节传输层(BTL)是

tcp
,它仅在连接到网络时可用(请参阅类似问题的此答案)。

您应该检查您的设置中使用的 BTL,并尝试通过设置

--mca btl_tcp_if_include lo0
来使用不同的 BTL。

© www.soinside.com 2019 - 2024. All rights reserved.