我正在尝试构建一个可执行文件,在手册上它提供了两个构建文件的选项,即 make
和 cmake
。 (请注意,该程序在 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)
`
我尝试使用 Cmake
和 make
构建文件,但在我尝试通过 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.
发布评论
评论(2)
根据
man mpirun
,您正在尝试执行一个目录...我认为您想要的命令是(如果 sparta 编译的程序位于
.../bench
目录中但是你尝试直接运行它吗?
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
directoryBut did you try to run it directly?
您可以通过以下命令使用这些命令
-O 标志优化文件与 C 编译器相同
You can use these commands by order
-O flag optimizes the file same as C compiler