Created
September 21, 2009 16:07
-
-
Save shelling/190348 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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