I am trying to run a mpi program but i have some problem with the installation. I get the packet from a repository and i can compile my program, but when i try to run the program i can t do it. Well, my program is a little bit biggest than an "Hello World", but my problem is with mpi library (i think so), not with the code. Here is my "Hello World" parallel (in spanish of course):
#include <stdio.h>
#include <mpi.h>
int main(int argc, char *argv[])
{
int rank, size;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
printf("Hola Mundo! Soy el %d de %d\n", rank, size);
MPI_Finalize();
return 0;
}
When i use mpicc appears the hola file.
mpicc hola.c -o hola
Then i run my program:
mpirun -np 5 ./hola
The output of (for @Gilles)
ls -1 hola
is just
hola
The output show from the comand line is this:
[proxy:0:0@miMachine-LMint] HYDU_create_process
(./utils/launch/launch.c:75): execvp error on file hola (No such file
or directory)
[proxy:0:0@miMachine-LMint] HYDU_create_process
(./utils/launch/launch.c:75): execvp error on file hola (No such file
or directory)
[proxy:0:0@miMachine-LMint] HYDU_create_process
(./utils/launch/launch.c:75): [proxy:0:0@patricio-LMint]
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-LMint] HYDU_create_process
(./utils/launch/launch.c:75): execvp error on file hola (No such file
or directory)
Well the thing is that i dont know what is the problem.