gpt4 book ai didi

python - 运行基于 OpenMPI 的库时出错

转载 作者:行者123 更新时间:2023-11-28 18:40:27 24 4
gpt4 key购买 nike

我已经从 Ubuntu 中提供的标准 apt-get 安装中安装了 openmpi 库。我运行了一个调用 MPI 库的 python 代码。我收到以下错误。任何想法错误的根源是什么?是 OpenMPI 配置错误吗?如何解决这个问题?

[thebigbang:17162] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_paffinity_hwloc: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[thebigbang:17162] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_carto_auto_detect: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[thebigbang:17162] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_carto_file: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[thebigbang:17162] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_shmem_mmap: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[thebigbang:17162] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_shmem_posix: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[thebigbang:17162] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_shmem_sysv: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)

--------------------------------------------------------------------------
It looks like opal_init failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during opal_init; some of which are due to configuration or
environment problems. This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):



opal_shmem_base_select failed
--> Returned value -1 instead of OPAL_SUCCESS

--------------------------------------------------------------------------

[thebigbang:17162] [[INVALID],INVALID] ORTE_ERROR_LOG: Error in file runtime/orte_init.c at line 79

--------------------------------------------------------------------------
It looks like MPI_INIT failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during MPI_INIT; some of which are due to configuration or environment
problems. This failure appears to be an internal failure; here's some
additional information (which may only be relevant to an Open MPI
developer):



ompi_mpi_init: orte_init failed
--> Returned "Error" (-1) instead of "Success" (0)

--------------------------------------------------------------------------

*** An error occurred in MPI_Init
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL: your MPI job will now abort
[thebigbang:17162] Local abort before MPI_INIT completed successfully; not able to aggregate error messages, and not able to guarantee that all other processes were killed!

最佳答案

似乎是一个关于链接和模块加载方式的复杂问题。解决方法是用--disable-dlopen

编译openmpi

使用 --disable-mca-dso 编译也对我有用。不幸的是,我不知道这在 ubuntu 上有多容易。

参见 http://www.open-mpi.org/faq/?category=building#avoid-dso

我在这里找到了解决方案:

http://r.789695.n4.nabble.com/Problem-installing-Rmpi-with-Open-MPI-td4641762.html

关于python - 运行基于 OpenMPI 的库时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26901663/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com