mpi - 运行 mpi 程序 [Errno 2] 没有这样的文件或目录

标签 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

看起来它正在尝试使用主机。有没有一种方法可以像我在笔记本电脑上一样在该服务器上运行我的程序? 另请注意,我在服务器上没有 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/

相关文章:

c++ - 客户端连接到服务器,但服务器认为客户端没有连接到 C++

c++ - 使用 MPI 程序,是否所有进程都从用户输入中获取数据?

c - MPI_Reduce 未按预期工作

error-handling - 程序崩溃时如何处理MPI错误

c - mpi_byte 是如何工作的?

python - Sidekit 代码在创建功能后 UBM 创建期间卡住

c - 多个节点上的 MPI_Bcast 错误

c++ - 在 HPC 上部署 C++ (MPI) 时如何避免问题

mpiexec.Hydra - 如何在 Hydra_pmi_proxy 位置不同的计算机上运行 MPI 进程?

c++ - 使用 Boost.MPI 仅同步部分 C++ vector