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


#include <stdio.h>
#include "mpi.h"
int main(int argc, char* argv []) {
int rank ;
MPI_Init(&argc, &argv) ;
MPI_Comm_rank(MPI_COMM_WORLD, &rank) ;
printf("hello from procesor %d\n", rank) ;
MPI_Finalize() ;
}



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