Run a program with mpi

0

I'll tell you my problem. I'm trying to run a program using the mpi library in linux mint. Download the package and I have downloaded the library. I can compile my program (mpicc) but when I try to run it using mpirun I get the following message: '

[proxy:0:0@miMachine-LinuxMint] HYDU_create_process (./utils/launch/launch.c:75): execvp error on file hola (No such file or directory) [proxy:0:0@miMachine-LinuxMint] HYDU_create_process (./utils/launch/launch.c:75): execvp error on file hola (No such file or directory) [proxy:0:0@miMachine-LinuxMint] HYDU_create_process (./utils/launch/launch.c:75): [proxy:0:0@miMachine-LinuxMint] HYDU_create_process (./utils/launch/launch.c:75): execvp error on file hola (No such file or directory) execvp error on file hola (No such file or directory) [proxy:0:0@miMachine-LinuxMint] HYDU_create_process (./utils/launch/launch.c:75): execvp error on file hola (No such file or directory)

My file is called hello. Unfortunately I can not put a mpi tag in the forum. If anyone has any suggestions, it will be welcome. Greetings.

    
asked by Patricio 09.10.2017 в 00:09
source

1 answer

0

Well, I managed to make it work. It seems that to compile mpi files it is necessary to install a package and to execute another package. I'm not an expert in Linux or package management and do not pay attention to it. First install the package to compile.

  

apt-get install lam4-dev

Then the package to run

  

apt-get install lam-runtime

Finally activate the execution package.

  

lamboot

Here is the exit for the execution of the program in 5 processes.

Hola! Soy el 0 de 5
Hola! Soy el 2 de 5
Hola! Soy el 1 de 5
Hola! Soy el 3 de 5
Hola! Soy el 4 de 5

Thanks for your reply @Renato A.

    
answered by 12.10.2017 / 03:56
source