我是 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
看起来它正在尝试使用主机。有没有一种方法可以像我在笔记本电脑上一样在该服务器上运行我的程序? 另请注意,我在服务器上没有 root 访问权限。
最佳答案
我最近遇到了类似的问题。我正在使用 this page 底部找到的一些测试 MPI 程序对我的 HDF5 安装进行故障排除。 。
user@host: mpiexec -n 4 f.out
problem with execution of f.out on host: [Errno 2] No such file or directory
problem with execution of f.out on host: [Errno 2] No such file or directory
problem with execution of f.out on host: [Errno 2] No such file or directory
problem with execution of f.out on host: [Errno 2] No such file or directory
当我包含程序的完整路径时,错误消失了:
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
关于mpi - 运行 mpi 程序 [Errno 2] 没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24104345/