Skip to content

Instantly share code, notes, and snippets.

@shelling
Created September 21, 2009 16:07
Show Gist options
  • Select an option

  • Save shelling/190348 to your computer and use it in GitHub Desktop.

Select an option

Save shelling/190348 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include "mpi.h"
int main ( int argc, char *argv[] ) {
int numprocs;
int myid;
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &myid);
printf("hello mpi program");
MPI_Finalize();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment