让 openmpi-2.0.2 工作时出现问题。 (MacOS 塞拉利昂)

Problems getting openmpi-2.0.2 to work. ( MacOS Sierra )

已尝试在我的 mac 运行 和 OSX Sierra 10.12.3 上安装 openmpi-2.0.2,每次都得到类似的结果。 使用以下安装:

$ cd openmpi-2.0.2

$ ./configure --prefix=/usr/local

$ make all

$ sudo make install

安装后想测试使用:

$ mpirun -n 4 hostname

&

$ mpiexec -n 4 hostname

两者都导致:

ORTE_ERROR_LOG: Bad parameter in file orted/pmix/pmix_server.c at line 262 ORTE_ERROR_LOG: Bad parameter in file ess_hnp_module.c at line 666 -------------------------------------------------------------------------- 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):

pmix server init failed --> Returned value Bad parameter (-5) instead of ORTE_SUCCESS

关于为什么会出现此错误以及我可以采取什么措施来解决它的任何想法?

请在此处查看问题 8:https://www.open-mpi.org/faq/?category=osx

  1. I am using Open MPI 2.0.x and getting an error at application startup. How do I work around this? On some versions of Mac OS X / MacOS Sierra, the default temporary directory location is sufficiently long that it is easy for an application to create file names for temporary files which exceed the maximum allowed file name length. With Open MPI, this can lead to errors like the following at application startup:

shell$ mpirun ... my_mpi_app

[[53415,0],0] ORTE_ERROR_LOG: Bad parameter in file ../../orte/orted/pmix/pmix_server.c at line 264

[[53415,0],0] ORTE_ERROR_LOG: Bad parameter in file ../../../../../orte/mca/ess/hnp/ess_hnp_module.c at line

The workaround for the Open MPI 2.0.x release series is to set the TMPDIR environment variable to /tmp or other short directory name.