ABACUS 原子算筹

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2319|回复: 0

正确编译之后运行时出现mpirun was unable to find the specified exec

[复制链接]

1

主题

2

帖子

51

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
51
发表于 2022-12-13 12:30:10 | 显示全部楼层 |阅读模式
有的用户在运行abacus时会出现报错
zzt@zzt-virtual-machine:~/abacus-develop/examples/force/pw_Si2$ mpirun -n 2 abacus
--------------------------------------------------------------------------
mpirun was unable to find the specified executable file, and therefore
did not launch the job.  This error was first reported for process
rank 0; 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:       zzt-virtual-machine
Executable: abacus

这可能是mpirun 找不到abacus可执行文件的原因。
有一种解决方法是使用abacus可执行文件的绝对路径,例如:mpirun -n 2 ~/abacus-develop/build/abacus
~/abacus-develop/build/是包含abacus可执行文件的路径。
另一种方法是把~/abacus-develop/build/添加到PATH变量中。例如:
执行命令:
export PATH="~/abacus-develop/build:$PATH"



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|ABACUS 原子算筹

GMT+8, 2024-5-10 06:58 , Processed in 0.013687 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表