将执行命令放到shell脚本后结果异常

清钟沁桐 2023-04-11 13:17:52

问题描述:基于EulerOS release 2.0 (SP8)系统,直接在命令行中执行下面的命令时正常

   mpirun --allow-run-as-root -mca pml ucx -mca btl ^vader,tcp,openib,uct -x UCX_TLS=self,sm --bind-to core  -np 128 lmp_omp_daily1120_order1_gnuld_script_offset0_text -in equ.in_omp

为了实现自动化,所以想把上面的命令添加到shell 脚本中,比如 run-default.sh,然后执行sh run-default.sh后异常,提示

A requested component was not found, or was unable to be opened.  This
means that this component is either not installed or is unable to be
used on your system (e.g., sometimes this means that shared libraries
that the component requires are unable to be found/loaded).  Note that
Open MPI stopped checking at the first component that it did not find.

Host:      A191240619
Framework: pml
Component: ucx
--------------------------------------------------------------------------
--------------------------------------------------------------------------
It looks like MPI_INIT failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during MPI_INIT; some of which are due to configuration or environment
problems.  This failure appears to be an internal failure; here's some
additional information (which may only be relevant to an Open MPI
developer):

  mca_pml_base_open() failed
  --> Returned "Not found" (-13) instead of "Success" (0)
--------------------------------------------------------------------------
[A191240619:41208] *** An error occurred in MPI_Init
[A191240619:41208] *** reported by process [3357081601,281470681743360]
[A191240619:41208] *** on a NULL communicator

 

...全文
279 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

138

社区成员

发帖
与我相关
我的任务
社区描述
操作系统
其他 其他
社区管理员
  • 操作系统小助手
  • Ashley0001
  • Lucifer三思而后行
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧