Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

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

#include <stdio.h>
#ifdef MPI
#include <mpi.h>
#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);
// }
-----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 ?


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