0

前段时间我们为 python 编写了自己的 mpi 包装器。在我最近升级到之后,一切都在 mac 上运行良好:

openmpi-default @1.7.3_2+gcc48 (active)
openmpi-devel-default @1.9a1_30433+gcc48 (active)
openmpi-gcc45 @1.7.3_2+fortran (active)

以下代码的所有内容都运行良好,并且仍然在 linux 上运行,尽管版本可能不同。但是,这是代码。这些函数本质上是包装器。

#!/usr/bin/env python


import mpilib

if not mpilib.isInitialised():
    print 'af'
mpilib.init()

调用 init() 会出现以下错误:

mpiexec -c 3 test.py

af
af
af
[localhost:02479] [[29887,0],0] mca_oob_tcp_recv_handler: invalid message type: 1959854080
[localhost.org:02479] [[29887,0],0] mca_oob_tcp_recv_handler: invalid message type: 1958674432
-------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
mpiexec detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

Process name: [[29887,1],0]
Exit code:    1

消息类型不可重现,并且似乎是未初始化的内存段。任何人的想法?

谢谢, EL

4

0 回答 0