[Beowulf] Problem with a simple MPI Program

J Pill jpilldev at gmail.com
Sun Jan 13 20:11:54 EST 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


!DSPAM:478af025254998362916074!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.clustermonkey.net/pipermail/beowulf/attachments/20080113/5c107457/attachment-0001.html>
-------------- next part --------------
_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf


!DSPAM:478af025254998362916074!


More information about the Beowulf mailing list