+/EE360P

distributed systems

git clone https://git.julia.blue/+/EE360P

vijaygarg1init36c1247

master
298 B17 linesraw
1#include "mpi.h"
2#include <stdio.h>
3
4int main( argc, argv )
5int argc;
6char **argv;
7{
8int rank, size;
9MPI_Init( &argc, &argv );
10MPI_Comm_rank( MPI_COMM_WORLD, &rank );
11MPI_Comm_size( MPI_COMM_WORLD, &size );
12printf( "Hello world! I'm %d of %d\n", 
13        rank, size );
14MPI_Finalize();
15return 0;
16}
17