Prac4 MPI  1
MPI
Functions
Prac4.cpp File Reference
#include "Prac4.h"

Functions

void Master ()
 
void Slave (int ID)
 
int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

This is the entry point to the program.

void Master ( )

This is the master node function, describing the operations that the master will be doing

Local vars

j: Loop counter

buff: Buffer for transferring message data

stat: Status of the MPI application

Output

The file Output.jpg will be created on success to save the processed output.

void Slave ( int  ID)

This is the Slave function, the workers of this MPI application.