今天在复现模型结果的时候,遇到了nodename包含下划线“_”导致open mpi无法运行的问题,报错信息如下所示:

------------------------------------------------------------------------
While trying to create a regular expression of the node names
used in this application, the regex parser has detected the
presence of an illegal character in the following node name:
node: abcd_12
Node names must be composed of a combination of ascii letters,
digits, dots, and the hyphen (‘-’) character. See the following
for an explanation:
https://en.wikipedia.org/wiki/Hostname
Please correct the error and try again.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
An internal error has occurred in ORTE:
[[30525,0],0] FORCE-TERMINATE AT (null):1 - error base/p

本文解决了一个在使用OpenMPI时遇到的问题:当nodename中包含下划线时,会导致OpenMPI无法正常运行。通过设置环境变量OMPI_MCA_regx为naive来解决此问题,并提供了在特定虚拟环境中持久化配置的方法。
最低0.47元/天 解锁文章
816

被折叠的 条评论
为什么被折叠?



