#include <stdio.h>
#ifdef MPI
#include <mpi.h>
#endif
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <stdio.h>


main(argc, argv)
        int argc;
        char *argv[];
{
        char name[BUFSIZ];
        int length;
        int rank;
        struct rlimit rlim;
        FILE *output;

#ifdef MPI
        MPI_Init(&argc, &argv);
        MPI_Get_processor_name(name, &length);
        MPI_Comm_rank(MPI_COMM_WORLD, &rank);
        rank = 0;
        MPI_Comm_rank(MPI_COMM_WORLD, &rank); #endif #ifdef MPI
//      while(1) {
                printf("%s: hello world from rank %d\n", name, rank);
                sleep(1);
//      }
        MPI_Finalize();
#endif
}
-----Original Message-----
From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On
Behalf Of George Bosilca
Sent: Wednesday, June 14, 2006 10:27 AM
To: Open MPI Users
Subject: Re: [OMPI users] Trouble with open MPI and Slurm

I wonder how the "simple optimized hello world" application look like ?

   george.

On Jun 14, 2006, at 1:05 PM, Doolittle, Joshua wrote:

> a simple mpi optimized hello world.

"Half of what I say is meaningless; but I say it so that the other half
may reach you"
                                   Kahlil Gibran


_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

Reply via email to