我有一个由4个节点组成的小型集群,每个节点都有4个核心。我可以很高兴地在一个节点上运行HP Linpack,但我正在努力让它在多个节点上运行。
我用OpenMPI和OpenBLAS从源代码编译了HPL-2.3。在单节点测试中,一切似乎都工作得很好。
我的'nodes‘文件是:
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,我会得到以下结果:
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时,我得到以下结果:
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将可执行文件分发到其他节点执行,而不必事先将可执行文件复制到其他节点。我是否从根本上误解了这一点?
任何指导都将不胜感激。
亲切的问候
约翰
发布于 2020-05-21 01:18:28
似乎我必须将'xhpl‘可执行文件复制到每个节点上的相同位置。
我看过mpirun --preload-binary选项,它看起来正是我想要的,但我不能让它工作。任何建议都将非常受欢迎。
谨致问候
约翰
https://stackoverflow.com/questions/61900123
复制相似问题