execvp error

Hi.
I wrote an MPIch program and mpic++'ed the source file. Now I am getting this error:
1
2
3
4
5
6
7
8
9
10
soheil@soheil-desktop:/media/TOSHIBA$ mpiexec -n 2  a.out
[proxy:0:0@soheil-desktop] HYDU_create_process (./utils/launch/launch.c:75): execvp error on file a.out (No such file or directory)
[proxy:0:0@soheil-desktop] HYDU_create_process (./utils/launch/launch.c:75): execvp error on file a.out (No such file or directory)

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   EXIT CODE: 255
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================


What is the cause?
closed account (Dy7SLyTq)
well ive never heard of this software, but ive gotten pretty good at reading error messages and it looks like it cant find a.out. this means one of several things.
a) you arent passing arguments in the right order (idk if thats right. like i said ive never used it before)
b) its root or admin protected (ie you dont have sufficient privledges to it)
c) its in a different directory and you arent providing a full path
d) a.out doesnt exist
soheil@soheil-desktop:/media/TOSHIBA$ mpiexec -n 2 a.out


Don't assume that a.out will be found just because it's in your current folder, unless that folder is in the PATH.

To be safe, qualify with (./)

soheil@soheil-desktop:/media/TOSHIBA$ mpiexec -n 2 ./a.out


Apologies if that's not the case.
you did mount it as `exec' this time, ┬┐right?
Last edited on
Topic archived. No new replies allowed.