Python 使用openmpi时无法修改队列对的属性

Python 使用openmpi时无法修改队列对的属性,python,mpi,Python,Mpi,今天我在调用mpirun时遇到了一个mpi异常,以前从未见过。例外情况是: [@nmyjs_104_22 ~]$ mpirun -np 1 echo "hello" -------------------------------------------------------------------------- Failed to modify the attributes of a queue pair (QP): Hostname: nmyjs_104_22 Mask for QP at

今天我在调用mpirun时遇到了一个mpi异常,以前从未见过。例外情况是:

[@nmyjs_104_22 ~]$ mpirun -np 1 echo "hello"
--------------------------------------------------------------------------
Failed to modify the attributes of a queue pair (QP):

Hostname: nmyjs_104_22
Mask for QP attributes to be modified: 113
Error:    Invalid argument
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Open MPI has detected that there are UD-capable Verbs devices on your
system, but none of them were able to be setup properly.  This may
indicate a problem on this system.

You job will continue, but Open MPI will ignore the "ud" oob component
in this run.

Hostname: nmyjs_104_22
--------------------------------------------------------------------------
[nmyjs_104_22:21719] *** Process received signal ***
[nmyjs_104_22:21719] Signal: Segmentation fault (11)
[nmyjs_104_22:21719] Signal code: Address not mapped (1)
[nmyjs_104_22:21719] Failing at address: 0x100000007
[nmyjs_104_22:21719] [ 0] /lib64/libpthread.so.0[0x3da4a0f710]
[nmyjs_104_22:21719] [ 1] /usr/local/lib/libopen-rte.so.20(orte_rml_send_callback+0x13)[0x7f59b87904e3]
[nmyjs_104_22:21719] [ 2] /usr/local/lib/openmpi/mca_rml_oob.so(+0x1e34)[0x7f59b4ccee34]
[nmyjs_104_22:21719] [ 3] /usr/local/lib/libopen-pal.so.20(opal_libevent2022_event_base_loop+0xbf1)[0x7f59b84a7ec1]
[nmyjs_104_22:21719] [ 4] mpirun[0x404b41]
[nmyjs_104_22:21719] [ 5] mpirun[0x403466]
[nmyjs_104_22:21719] [ 6] /lib64/libc.so.6(__libc_start_main+0xfd)[0x3da461ed5d]
[nmyjs_104_22:21719] [ 7] mpirun[0x403359]
[nmyjs_104_22:21719] *** End of error message ***

输出似乎意味着openmpi无论如何都会运行。但在这种情况下,我的代码即使只是运行一个简单的命令也会失败

例如,
mpirun-np 1 echo“hello world”
,例外情况是:

[@nmyjs_104_22 ~]$ mpirun -np 1 echo "hello"
--------------------------------------------------------------------------
Failed to modify the attributes of a queue pair (QP):

Hostname: nmyjs_104_22
Mask for QP attributes to be modified: 113
Error:    Invalid argument
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Open MPI has detected that there are UD-capable Verbs devices on your
system, but none of them were able to be setup properly.  This may
indicate a problem on this system.

You job will continue, but Open MPI will ignore the "ud" oob component
in this run.

Hostname: nmyjs_104_22
--------------------------------------------------------------------------
[nmyjs_104_22:21719] *** Process received signal ***
[nmyjs_104_22:21719] Signal: Segmentation fault (11)
[nmyjs_104_22:21719] Signal code: Address not mapped (1)
[nmyjs_104_22:21719] Failing at address: 0x100000007
[nmyjs_104_22:21719] [ 0] /lib64/libpthread.so.0[0x3da4a0f710]
[nmyjs_104_22:21719] [ 1] /usr/local/lib/libopen-rte.so.20(orte_rml_send_callback+0x13)[0x7f59b87904e3]
[nmyjs_104_22:21719] [ 2] /usr/local/lib/openmpi/mca_rml_oob.so(+0x1e34)[0x7f59b4ccee34]
[nmyjs_104_22:21719] [ 3] /usr/local/lib/libopen-pal.so.20(opal_libevent2022_event_base_loop+0xbf1)[0x7f59b84a7ec1]
[nmyjs_104_22:21719] [ 4] mpirun[0x404b41]
[nmyjs_104_22:21719] [ 5] mpirun[0x403466]
[nmyjs_104_22:21719] [ 6] /lib64/libc.so.6(__libc_start_main+0xfd)[0x3da461ed5d]
[nmyjs_104_22:21719] [ 7] mpirun[0x403359]
[nmyjs_104_22:21719] *** End of error message ***
我在谷歌上搜索了一下,但没有找到运气。我今天做的是将openmpi从2.0.2更新到2.1.0,它位于。我还将openmpi恢复为2.0.2,但仍然存在此错误。希望有人能帮忙


谢谢你

你可能会更幸运地在openmpi邮件列表中询问。另外请注意,在异常的末尾“要求”您检查是否省略了-np。谢谢您的回复。是的,我也在
openmpi
邮件列表中询问过。希望他们能帮我。而且
-np
应该不是问题,因为它只是简单测试中不必要的参数。您的
mpirun
命令是什么?!您似乎忘记包含一些必需的参数。谢谢您的帮助。但这应该不是问题。即使我使用如下命令:
mpirun-np1 python-c“print('hello world')”
,仍然存在异常