1 | program main |
2 | include 'mpif.h' |
3 | integer rank, size, tag, count, i, ierr |
4 | integer src, dest, st_source, st_tag, st_count |
5 | integer status(MPI_STATUS_SIZE) |
6 | call MPI_INIT( ierr ) |
7 | call MPI_COMM_RANK( MPI_COMM_WORLD, rank, ierr ) |
8 | call MPI_COMM_SIZE( MPI_COMM_WORLD, size, ierr ) |
9 | print *, 'Process ', rank, ' of ', size, ' is alive' |
10 | ... |