【发布时间】:2019-03-08 09:40:36
【问题描述】:
当我跑步时
mpirun -np 4 mpi_script.sh
我得到了错误
Open MPI tried to fork a new process via the "execve" system call but failed.
...
Error: Exec format error
尽管我可以使用./mpi_script.sh 运行脚本
【问题讨论】:
当我跑步时
mpirun -np 4 mpi_script.sh
我得到了错误
Open MPI tried to fork a new process via the "execve" system call but failed.
...
Error: Exec format error
尽管我可以使用./mpi_script.sh 运行脚本
【问题讨论】:
就我而言,问题是我没有shebang。
将#!/usr/bin/env bash 添加到我的脚本顶部修复了它:
#!/usr/bin/env bash
# rest of script
# ...
注意确保文件具有执行权限:
chmod +x mpi_script.sh
【讨论】: