mpirun 问题:HYDU_create_process(权限被拒绝)

发布于 2025-01-16 13:12:30 字数 723 浏览 2 评论 0 原文

我正在尝试构建一个可执行文件,在手册上它提供了两个构建文件的选项,即 makecmake。 (请注意,该程序在 Linux 上运行)

因此,我按照该过程进行操作,当我尝试运行由 mpirun 提供的代码测试示例时,一切似乎都正常运行:

└─$ mpirun -np 1 $HOME/sparta/bench spa_mac \< in.free

\[proxy:0:0@kalig\] HYDU_create_process (utils/launch/launch.c:73): execvp error on file /home/gioggior/sparta/bench (Permission denied)

`

我尝试使用 Cmakemake 构建文件,但在我尝试通过 mpirun 运行示例后,错误始终相同。

我已经安装了 MPICH2 (我已经看到该程序与 OpenMPI 存在问题)

我认为这是权限问题,但我已经检查过该文件是否有已有权限wxr

我尝试寻找解决方案,但没有成功,但这是我第一次接触 Linux,所以我非常缺乏经验。

我尝试运行的开源代码称为 SPARTA DSMC(如果它可以提供帮助的话)。

I'm trying to build an executable file, on the manual it gives two options to build the file, with make and cmake. (Note that the program runs on linux)

So I followed the procedure and everything seems to work up to the point when I try to run a benchmark example provided with the code, by mpirun:

└─$ mpirun -np 1 $HOME/sparta/bench spa_mac \< in.free

\[proxy:0:0@kalig\] HYDU_create_process (utils/launch/launch.c:73): execvp error on file /home/gioggior/sparta/bench (Permission denied)

`

I tried to build the file both with Cmake and make but the error is always the same after I try to run the example by mpirun.

I have already installed MPICH2 (I've already seen that the program has problems with OpenMPI)

I thought it was a permission problem but I've already checked that the file has already permissions w-x-r.

I tried to search for a solution with no avail, however this is my first approach to Linux so I'm very unexperienced.

The open source code I'm trying to run is called SPARTA DSMC if it can help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柳若烟 2025-01-23 13:12:30

根据 man mpirun ,您正在尝试执行一个目录...

我认为您想要的命令是(如果 sparta 编译的程序位于 .../bench 目录中

cd $HOME/sparta/bench
mpirun -np 1 ./spa_mac < in.free

但是你尝试直接运行它吗?

cd $HOME/sparta/bench
./spa_mac < in.free

According to man mpirun, you are trying to execute a directory...

I think the command you want is (if sparta compiled program is in .../bench directory

cd $HOME/sparta/bench
mpirun -np 1 ./spa_mac < in.free

But did you try to run it directly?

cd $HOME/sparta/bench
./spa_mac < in.free
茶花眉 2025-01-23 13:12:30

您可以通过以下命令使用这些命令

  1. mpicc -O $HOME/sparta/bench spa_mac -o in.free
  2. mpirun -np 1 ./in.free

-O 标志优化文件与 C 编译器相同

You can use these commands by order

  1. mpicc -O $HOME/sparta/bench spa_mac -o in.free
  2. mpirun -np 1 ./in.free

-O flag optimizes the file same as C compiler

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文