我试图在运行Ubuntu 11.04(Natty Narwhal)的64位机器上安装MPICH 2.我用了
sudo apt-get install mpich2
Run Code Online (Sandbox Code Playgroud)
首先,我惊讶地发现没有安装mpd.在查看Google时,我看到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.
> -------------------------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
首先,它看起来像是一个Open MPI错误.但是我安装了MPICH 2而不是Open MPI.
其次,我正在解决如何处理这个问题,因为所有帮助似乎都是针对Open MPI用户的.我错过了什么吗?
han*_*ang 12
我在Ubuntu 12.04上遇到了同样的问题.我发现我的问题是因为我的计算机上有open-mpi和mpich2.当我使用mpicc编译我的程序时,它将链接到open-mpi而不是mpich2.要解决此问题,可以使用"mpicc.mpich2"编译程序,然后使用"mpiexec.mpich2"执行代码.
事实上,这些错误消息都是 Open MPI 错误。由于某种原因,您似乎还在某处安装了 Open MPI 的(配置错误?)副本。mpiexec
您可以通过运行来检查正在执行的特定文件which mpiexec
。我相信您可以将其与以下结果进行比较:
dpkg --listfiles mpich2
(或类似)以确定 MPICH2 软件包的安装位置。
归档时间: |
|
查看次数: |
19297 次 |
最近记录: |