user15964
user15964

Reputation: 2639

using MPI: What on earth is "execvp error on file" error?

I am using my own laptop locally with win 10 system and intel parallel studio .

After I compiled my mpi code with mpiifort and run it with mpiexec for the first time. It warns me to input account and password, like below

enter image description here

I am sure I put in the correct password. But it just didn't work. What does "execvp error" mean? I never encountered this problem before on my old win8 system. I just installed this new win10 system on my laptop, everything is new. Could somebody please help me instead of making close vote without any comment? At least, say something

Upvotes: 0

Views: 10397

Answers (1)

osgx
osgx

Reputation: 94455

execvp error on file is the error from doing execvp system call. It is variant of exec system call used to start programs. In your case the mpiexec program tries to start the mpi-learning-pack.exe file on the target hosts (according to settings, probably some environment settings). This error says that it can't start your program on target hosts, because either it is not executable file, or cannot be found (not copied to target hosts or have no full path).

mpiexec does not copy file to targets, you should copy it to every target hosts.

You can also check if it executable by manually starting it on target host: just login to target host and type mpi-learning-pack.exe without mpiexec; program may not start if there are no any of required library on target.

Or your account has no enough privileges like https://software.intel.com/en-us/forums/intel-clusters-and-hpc-technology/topic/607844 https://software.intel.com/en-us/forums/intel-clusters-and-hpc-technology/topic/624054

Or you just should use relative (mpiexec [options] .\mpi-learning-pack.exe) or full path (mpiexec [options] e:\w\work\fortran\_test_and_learning\mpi-learning-pack.exe) of target executable like in https://software.intel.com/en-us/forums/intel-clusters-and-hpc-technology/topic/624054

Upvotes: 1

Related Questions