MPI mpirun execvp错误:没有这样的文件或目录 [英] MPI mpirun execvp error: no such file or directory
本文介绍了MPI mpirun execvp错误:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用MPI运行c ++代码(BCparallel.cpp);使用以下代码编译代码:
I'm trying to run a c++ code (BCparallel.cpp) using MPI; compiling the code with:
mpic++ BCparallel.cpp -o BCparallel
很好,但是当我通过那行
is well succeed, but when I pass the line
mpiexec -np 4 BCparallel file.txt
返回
[proxy:0:0@lps-Inspiron-5537] HYDU_create_process
(utils/launch/launch.c:75): execvp error on file BCparallel (No such
file or directory)
[proxy:0:0@lps-Inspiron-5537] HYDU_create_process
(utils/launch/launch.c:75): execvp error on file BCparallel (No such
file or directory)
[proxy:0:0@lps-Inspiron-5537] HYDU_create_process
(utils/launch/launch.c:75): execvp error on file BCparallel (No such
file or directory)
[proxy:0:0@lps-Inspiron-5537] HYDU_create_process
(utils/launch/launch.c:75): execvp error on file BCparallel (No such
file or directory)
我在做什么错了?
推荐答案
该程序不在您的$PATH
中,并且您未指定该程序所在的路径.试试这个:
The program is not in your $PATH
and you have not specified the path where it exists. Try this:
mpiexec -np 4 ./BCparallel file.txt
这与任何其他程序相同,如果不在$PATH
中,则必须使用路径进行限定.这样可以防止您在当前目录中意外运行名为ls
的程序.
This is the same as for any other program, which if it is not in $PATH
must be qualified with a path. This protects you from accidentally running a program called ls
(for example) in your current directory.
这篇关于MPI mpirun execvp错误:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文