gpt4 book ai didi

mpich - 由于 MPI init 中止,mpiexec 失败

转载 作者:行者123 更新时间:2023-12-01 22:29:15 25 4
gpt4 key购买 nike

我正在尝试安装MPICH 2 在运行 Ubuntu 11.04 (Natty Narwhal) 的 64 位机器上。我用过

sudo apt-get install mpich2

首先我很惊讶地发现 mpd 没有安装。在谷歌上查找时,我看到Hydra是新的默认包管理器。所以我尝试运行我的 MPI 代码。我收到以下错误。

> -------------------------------------------------------------------------------------------
> [ip-10-99-75-58:02212] [[INVALID],INVALID] ORTE_ERROR_LOG: A
> system-required executable either could not be found or was not
> executable by this user in file
> ../../../../../../orte/mca/ess/singleton/ess_singleton_module.c at
> line 357 [ip-10-99-75-58:02212] [[INVALID],INVALID] ORTE_ERROR_LOG: A
> system-required executable either could not be found or was not
> executable by this user in file
> ../../../../../../orte/mca/ess/singleton/ess_singleton_module.c at
> line 230 [ip-10-99-75-58:02212] [[INVALID],INVALID] ORTE_ERROR_LOG: A
> system-required executable either could not be found or was not
> executable by this user in file ../../../orte/runtime/orte_init.c at
> line 132
> --------------------------------------------------------------------------
> It looks like orte_init failed for some reason; your parallel process
> is likely to abort. There are many reasons that a parallel process
> can fail during orte_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):
>
> orte_ess_set_name failed --> Returned value A system-required
> executable either could not be found or was not executable by this
> user (-127) instead of ORTE_SUCCESS
> --------------------------------------------------------------------------
> --------------------------------------------------------------------------
> 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 "A system-required
> executable either could not be found or was not executable by this
> user" (-127) instead of "Success" (0)
> --------------------------------------------------------------------------
> *** The MPI_Init() function was called before MPI_INIT was invoked.
> *** This is disallowed by the MPI standard.
> *** Your MPI job will now abort.
> -------------------------------------------------------------------------------------------

首先,在我看来它是 Open MPI错误。但我安装了 MPICH 2 而不是 Open MPI。

其次,我正在解决如何处理这个问题,因为所有帮助似乎都针对 Open MPI 用户。我错过了什么吗?

最佳答案

我在 Ubuntu 12.04 上也遇到同样的问题。我发现我的问题是因为我的计算机上同时有 open-mpi 和 mpich2 。当我使用 mpicc 编译程序时,它将链接到 open-mpi 而不是 mpich2。要解决此问题,您可以使用“mpicc.mpich2”编译程序,然后使用“mpiexec.mpich2”执行代码。

关于mpich - 由于 MPI init 中止,mpiexec 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7011519/

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