【发布时间】:2015-10-09 03:57:37
【问题描述】:
my_hostfile.txt 是:
node1 slots=12 max-slots=12 node2 slots=12 max-slots=12 node3 slots=12 max-slots=12 node4 slots=12 max-slots=12
为了运行程序,我使用了这个命令:
mpirun --hostfile my_hostfile.txt -pernode -n 48 ./run_mpi 13-4 -l 13 -d 4
结果:
--------------------------------------------------------------------------
Open RTE detected a parse error in the hostfile:
my_hostfile.txt
It occured on line number 1 on token 1.
--------------------------------------------------------------------------
[node4:30641] [0,0,0] ORTE_ERROR_LOG: Error in file rmgr_urm.c at line 358
[node4:30641] mpirun: spawn failed with errno=-1
我该怎么办?
【问题讨论】:
-
确保主机文件是 ASCII 而不是 2 字节的 Unicode。或者开头可能有一个 UTF-8 BOM。
标签: c++ mpi cluster-computing