运行mpi程序[Errno 2]没有这样的文件或目录
我是MPI新手,我正在尝试运行我在服务器上编写的这个程序(它在我的笔记本电脑上运行良好)。我的笔记本电脑操作系统是ubuntu,服务器操作系统是centos。在服务器上,它可以很好地编译,但当我使用以下工具运行它时:运行mpi程序[Errno 2]没有这样的文件或目录,mpi,Mpi,我是MPI新手,我正在尝试运行我在服务器上编写的这个程序(它在我的笔记本电脑上运行良好)。我的笔记本电脑操作系统是ubuntu,服务器操作系统是centos。在服务器上,它可以很好地编译,但当我使用以下工具运行它时: mpicxx main.cpp -o main mpirun -np 1 main 我得到这个错误: problem with execution of main on www.judge.com: [Errno 2] No such file or directory
mpicxx main.cpp -o main
mpirun -np 1 main
我得到这个错误:
problem with execution of main on www.judge.com: [Errno 2] No such file or directory
看起来它正在尝试使用主机。有没有办法像在笔记本电脑上那样在服务器上运行我的程序?
还请注意,我在服务器上没有root访问权限。我最近遇到了类似的问题。我正在使用一些测试MPI程序对HDF5安装进行故障排除,这些程序位于 当我包含程序的完整路径时,错误消失了:
user@host: mpiexec -n 4 ~/testing/f.out
Trying to create filef.h5
MPI_FILE_OPEN succeeded
Trying to create filef.h5
MPI_FILE_OPEN succeeded
Trying to create filef.h5
MPI_FILE_OPEN succeeded
Trying to create filef.h5
MPI_FILE_OPEN succeeded
查看此错误的含义。尝试使用路径中的当前目录:
mpirun-np 1./main
-这有帮助吗?它说可能是因为文件不存在或我没有足够的访问权限。但是什么文件?我还尝试了mpirun-np 1./main,但得到了相同的错误,但有一点不同:“…在上执行./main…”
user@host: mpiexec -n 4 ~/testing/f.out
Trying to create filef.h5
MPI_FILE_OPEN succeeded
Trying to create filef.h5
MPI_FILE_OPEN succeeded
Trying to create filef.h5
MPI_FILE_OPEN succeeded
Trying to create filef.h5
MPI_FILE_OPEN succeeded