Professional Documents
Culture Documents
Name :
Pratham Shah
Slot : L47+L48
SCENARIO – I
MPI is a message passing interface system which facilitates the processors which have
distributed memory architecture to communicate and send & receive messages.
You are asked to use MPI_init() and MPI_Finalize() methods to implement the program.
ALGORITHM:
SOURCE CODE:
Reg No : 19BCE2028
Name :
Pratham Shah
Slot : L47+L48
RESULTS: “Hello World” was printed using the message passing interface.
SCENARIO – II
• Construct a MPI program to print rank of the processor, size of the domain(group)
and name of the processor/domain in the terminal.
• MPI is a message passing interface system which facilitates the processors which
have distributed memory architecture to communicate and send & receive
messages.
• You are asked to use MPI_Comm_rank(), MPI_Comm_size(),
MPI_Get_processor_name() methods
SOURCE CODE:
Reg No : 19BCE2028
Name :
Pratham Shah
Slot : L47+L48
OUTPUT :
RESULTS: Using in built MPI functions, we could see and print rank, size, processor
name.