next up previous contents
Next: Compiling and linking Up: Getting started Previous: Getting started   Contents

Writing MPI programs

First program with MPI (hello.c)
#include "mpi.h"
#include <stdio.h>

int main( argc, argv )
int argc;
char **argv;
{
MPI_Init( &argc, &argv );
printf( "Hello world\n" );
MPI_Finalize();
return 0;
}


Cem Ozdogan 2006-12-27