当前位置: 首页 > 工具软件 > Open MPI > 使用案例 >

MPI运行出错Open MPI tried to fork a new process via the “execve“ system call but failed. Open MPI check

齐涛
2023-12-01

MPI单节点测试的时候报错:
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 som

原因:
在之前的环境配置中我们修改过~/.bashrc文件,在里面添加了export PATH=/usr/local/mpich/bin:$PATH之类的语句,你可以试试which mpicc或者which mpiexec命令,看出来的路径是不是与你export的路径是一致的,因为我之前就不一样,出来的是/usr/bin/mpich,只要修改一下~/.bashrc文件里面的内容就好了

 类似资料: