执行mpirun命令时报错:
Fatal error in MPI_Init: Other MPI error, error stack:
MPIR_Init_thread(474)..............:
看了很多解决方法,最后亲测最简单明了的方法是在/etc/hosts文件中加入
127.0.0.1 host—_name
比如我的host是root@dggphis282828,报错时我的/etc/hosts内容为
127.0.0.1 localhost
127.0.0.1 ubuntu-00
#The following lines are desirable for IPv6 capable host
………………
在127.0.0.1 localhost后添加127.0.0.1 dggphis282828执行即可
127.0.0.1 localhost
127.0.0.1 dggphis282828
127.0.0.1 ubuntu-00