gpt4 book ai didi

r - 在 Ubuntu 上使用 openmpi 3.0.0 加载 Rmpi​​ 抛出错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:37:48 24 4
gpt4 key购买 nike

我在尝试安装 Rmpi​​ 时遇到了一些库问题,在 Ubuntu 16.04 上从源代码安装了 openmpi 3.0.0 到/usr/local。

open mpi 似乎安装正确,mpirun --version works

当我尝试使用此命令安装 Rmpi​​ 时

sudo R CMD INSTALL ./Downloads/Rmpi_0.6-6.tar.gz --configure-args="--with-Rmpi-type={OPENMPI}"

它编译得很好,并找到了库

I am here /usr/local and it is OpenMPI
Trying to find mpi.h ...
Found in /usr/local/include
Trying to find libmpi.so or libmpich.a ...
Found libmpi in /usr/local/lib
checking for orted... yes
checking for openpty in -lutil... yes
checking for main in -lpthread... yes
configure: creating ./config.status

但是当它进行负载测试时我得到

** testing if installed package can be loaded
*** An error occurred in MPI_Init
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
*** and potentially your MPI job)

我已经尝试了很多东西,但仍然没有运气。如何追踪到 mpi 连接中的错误?

最佳答案

根据评论部分的各种交流,当 Open MPI 被 Rmpi​​ 用作插件时,似乎存在问题。

解决方案/解决方法是从头开始重建 Open MPI 并使用 --disable-dlopen 参数进行配置。

这可能与 Open MPI 中讨论的问题有关

关于r - 在 Ubuntu 上使用 openmpi 3.0.0 加载 Rmpi​​ 抛出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46539315/

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