无法使用"mpirun"命令运行程序

  • 本文关键字:命令 运行 程序 mpirun cpu
  • 更新时间 :
  • 英文 :


我用cygwin完美地构建了一个程序,但是当我必须使用命令"mpirun"运行.exe文件时,正如程序教程所说

https://github.com/jalombar/starsmasher/blob/master/documentation/walkthroughs/star_star_flyby.md

出现以下错误:

$ mpirun -np 4 test_cpu_sph
[Francyrad:00524] PMIX ERROR: INIT in file /cygdrive/d/cyg_pub/devel/openmpi/v3.1/openmpi-3.1.5-1.x86_64/src/openmpi-3.1.5/opal/mca/pmix/pmix2x/pmix/src/mca/gds/ds21/gds_ds21_lock_pthread.c at line 188
[Francyrad:00524] PMIX ERROR: SUCCESS in file /cygdrive/d/cyg_pub/devel/openmpi/v3.1/openmpi-3.1.5-1.x86_64/src/openmpi-3.1.5/opal/mca/pmix/pmix2x/pmix/src/mca/common/dstore/dstore_base.c at line 2432
--------------------------------------------------------------------------
Open MPI tried to fork a new process via the "execve" system call but
failed.  Open MPI checks many things before attempting to launch a
child process, but nothing is perfect. This error may be indicative
of another problem on the target host, or even something as silly as
having specified a directory for your application. Your job will now
abort.
Local host:        Francyrad
Application name:  /cygdrive/c/Users/Francyrad/Desktop/starsmasher/GAM1.667_N1.5
Error:             /cygdrive/c/Users/Francyrad/Desktop/starsmasher/GAM1.667_N1.5/test_cpu_sph
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun was unable to start the specified application as it encountered an
error:
Error name:
Node: (null)
when attempting to start process rank 34361314336.
--------------------------------------------------------------------------
4 total processes failed to start
[Francyrad:00524] 3 more processes have sent help message help-orte-odls-default.txt / execve error
[Francyrad:00524] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

我尝试了一切,更改语法和其他,但任何事情!我不知道如何运行此应用程序。我到底要做什么????

哼哼,可执行文件似乎是问题所在......

您的可执行文件是否构建良好?你看到它与"ls"命令吗? 您是否尝试使用"mpirun -np 4 ./test_cpu_sph"而不是"mpirun -np 4 test_cpu_sph"来调用带有 mpirun 的可执行文件?

你能提供更多信息吗?(如果你使用的是Cygwin,我猜你是在Windows上运行的?(

最新更新