首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在两个VM上运行Open作业?

如何在两个VM上运行Open作业?
EN

Stack Overflow用户
提问于 2022-04-13 13:28:08
回答 1查看 90关注 0票数 0

我试图在我的计算机上的两个Ubuntu虚拟机上运行hello_ompi程序。这个程序可以找到这里

VM有两个处理器,每个处理器有一个核心。安装的操作系统是Ubuntu20.04.3-LTS 64位。

我使用的主机文件如下:

代码语言:javascript
复制
192.168.xxx.xxx
192.168.xxx.xxx

我试过:

代码语言:javascript
复制
mpirun -n 2 --hostfile my_hostfile hello_ompi

其结果是:

代码语言:javascript
复制
--------------------------------------------------------------------------
mpirun was unable to find the specified executable file, and therefore
did not launch the job.  This error was first reported for process
rank 0; it may have occurred for other processes as well.

NOTE: A common cause for this error is misspelling a mpirun command
      line parameter option (remember that mpirun interprets the first
      unrecognized command line token as the executable).

Node:       192.168.xxx.xxx
Executable: hello_ompi
--------------------------------------------------------------------------
EN

回答 1

Stack Overflow用户

发布于 2022-04-13 14:41:16

我意识到,可执行文件需要位于与主机节点相同的目录中。也就是说,如果在主机节点上,可执行文件的路径是:

代码语言:javascript
复制
/home/youruser/somedir/executable.c

然后,在主机文件中的所有机器上,可执行文件必须位于这些机器上的完全相同的目录中。

一旦我更正了这个命令,这个命令就能完美地运行。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71858314

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档