簡體   English   中英

使用CMake編譯后,使用mpich2的mpirun時出現問題

[英]Trouble using mpirun from mpich2 after compiling using CMake

我在嘗試運行MPI時遇到了麻煩。 我安裝了mpich2-1.4.1p1,當我使用mpirun運行mpi程序時,我得到:

[starsky:27711] [[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
[starsky:27711] [[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
[starsky:27711] [[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
--------------------------------------------------------------------------
[starsky:27719] [[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
--------------------------------------------------------------------------
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)

以及其他非常相似的錯誤消息。

這與mpiexec失敗的問題非常類似, 因為MPI init中止了 ,因為我似乎同時擁有Open MPI和mpich2。 但是,我正在使用cmake進行編譯,當我執行建議的mpicc-vt.mpich2(mpicc-vt因為我使用vampir trace)進行編譯,然后mpirun.mpich2運行時,我收到以下錯誤:

To run 'mpirun.mpich2' please ask your administrator to install the package 'mpich2'

我已經安裝了mpich2。 有沒有我想安裝mpich2的配置? 當我在配置中查看本手冊時,似乎沒有一個符合我的需要。

謝謝

很難說出這里發生了什么,因為你的系統上安裝了兩個MPI庫,處於各種完成狀態。 我認為此時最好的做法是卸載Open MPI和MPICH,然后轉到您正在使用的軟件包管理器並重新安裝。 這是讓一切運轉起來的最簡單方法。

如果你想要最新的版本(這通常是一件好事),你將不得不直接訪問源代碼,所以看一下你下載的tarball捆綁的README。 通常,對於這兩個包,您都使用安裝Unix軟件的標准方法。

./configure --prefix=<path for installation>
make
make install

MPICH和Open MPI有很多自定義選項,如果你執行./configure --help並通過自述文件,你可以閱讀這些選項,但除非你有一個特殊的系統,否則通常都不需要這些選項。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM