首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OpenMPI /高性能Linpack新手问题

OpenMPI /高性能Linpack新手问题
EN

Stack Overflow用户
提问于 2020-05-20 04:24:04
回答 1查看 50关注 0票数 0

我有一个由4个节点组成的小型集群,每个节点都有4个核心。我可以很高兴地在一个节点上运行HP Linpack,但我正在努力让它在多个节点上运行。

我用OpenMPI和OpenBLAS从源代码编译了HPL-2.3。在单节点测试中,一切似乎都工作得很好。

我的'nodes‘文件是:

代码语言:javascript
复制
192.168.0.1 slots=4
192.168.0.2 slots=4
192.168.0.3 slots=4
192.168.0.4 slots=4

如果我运行mpirun -np 16 -hostfile nodes uptime,我会得到以下结果:

代码语言:javascript
复制
19:10:49 up  8:46,  1 user,  load average: 0.05, 0.53, 0.34
19:10:49 up  8:46,  1 user,  load average: 0.05, 0.53, 0.34
19:10:49 up  8:46,  1 user,  load average: 0.05, 0.53, 0.34
19:10:49 up 9 min,  0 users,  load average: 0.08, 0.06, 0.03
19:10:49 up 9 min,  0 users,  load average: 0.08, 0.06, 0.03
19:10:49 up 9 min,  0 users,  load average: 0.08, 0.06, 0.03
19:10:49 up  8:46,  1 user,  load average: 0.05, 0.53, 0.34
19:10:49 up 37 min,  0 users,  load average: 0.08, 0.02, 0.01
19:10:49 up 37 min,  0 users,  load average: 0.08, 0.02, 0.01
19:10:49 up 37 min,  0 users,  load average: 0.08, 0.02, 0.01
19:10:49 up 20 min,  0 users,  load average: 0.00, 0.02, 0.00
19:10:49 up 9 min,  0 users,  load average: 0.08, 0.06, 0.03
19:10:49 up 20 min,  0 users,  load average: 0.00, 0.02, 0.00
19:10:49 up 20 min,  0 users,  load average: 0.00, 0.02, 0.00
19:10:49 up 37 min,  0 users,  load average: 0.08, 0.02, 0.01
19:10:49 up 20 min,  0 users,  load average: 0.00, 0.02, 0.00

向我建议,OpenMPI正在工作,并将uptime分发到4个处理器,16个核心。

但是,当我运行mpirun -np 16 -hostfile nodes xhpl时,我得到以下结果:

代码语言: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 8; 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.0.3
Executable: /home/ucapjbj/phas0077/projects/hpl-2.3/bin/arch/xhpl

这表明在节点192.168.0.3上找不到xhpl,这似乎是合理的,因为它只出现在我的开发节点192.168.0.1上。但从概念上讲,我的印象是可以在一个节点上开发,然后让OpenMPI将可执行文件分发到其他节点执行,而不必事先将可执行文件复制到其他节点。我是否从根本上误解了这一点?

任何指导都将不胜感激。

亲切的问候

约翰

EN

回答 1

Stack Overflow用户

发布于 2020-05-21 01:18:28

似乎我必须将'xhpl‘可执行文件复制到每个节点上的相同位置。

我看过mpirun --preload-binary选项,它看起来正是我想要的,但我不能让它工作。任何建议都将非常受欢迎。

谨致问候

约翰

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

https://stackoverflow.com/questions/61900123

复制
相关文章

相似问题

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