Basic HTML version of Foils prepared
May 7 1996
Foil 121 MPI - Parallel "Hello World"
From
MetaComputing -- MRA Meeting Part I:Concepts and Issues Tutorial for CRPC MRA Meeting at Cornell --
May 7 1996
.
by
Mark Baker, Geoffrey Fox
1
#include <stdio.h>
2
#include "mpi.h"
3
int main(int argc, char* argv []) {
4
int rank ;
5
MPI_Init(&argc, &argv) ;
6
MPI_Comm_rank(MPI_COMM_WORLD, &rank) ;
7
printf("hello from procesor %d\n", rank) ;
8
MPI_Finalize() ;
9
}
in Table To:
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Sun Apr 11 1999