Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Doolittle, Joshua (joshua.doolittle_at_[hidden])
Date: 2006-06-14 13:51:14


#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-bounces_at_[hidden] [mailto:users-bounces_at_[hidden]] 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
users_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/users