This file contains 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 <string.h> | |
#include "mpi.h" | |
int main(int argc, char* argv[]){ | |
int my_rank; /* rank of process */ | |
int p; /* number of processes */ | |
int source; /* rank of sender */ | |
int dest; /* rank of receiver */ | |
int tag=0; /* tag for messages */ |