Archives


- Beowulf
- Beowulf Announce
- Scyld-users
- Beowulf on Debian

[Beowulf] Problem with a simple MPI Program

Many of your questions may have already been answered in earlier discussions or in the FAQ. The search results page will indicate current discussions as well as past list serves, articles, and papers.

Search

J Pill jpilldev at gmail.com
Sun Jan 13 17:11:54 PST 2008


Hello.

I'm trying to run a simple hello word program:

#include "mpi.h"
#include <stdio.h>

int main (argc, argv)
int argc;
char **argv;
{
        MPI_Init (&argc, &argv);
        printf ("hello word\n");
        MPI_Finalize();
        return 0;
}

I compile with mpicc and there's no problem, but when i try to run with
mpiexec or mpirun y have the folliwing:

$ mpirun -np 2 hello
problem with execution of hello on  DebianJPill:  [Errno 2] No such file or
directory
problem with execution of hello  on  DebianJPill:  [Errno 2] No such file or
directory

But running the file generated there no problem.
$./hello
What i have doing wrong?

thanks a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.scyld.com/pipermail/beowulf/attachments/20080113/5c107457/attachment.html


More information about the Beowulf mailing list