Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This part consists of writing four simple programs in MPI. The goal here is to get some experience using the basic communications constructs built into

image text in transcribed

This part consists of writing four simple programs in MPI. The goal here is to get some experience using the basic communications constructs built into MPI to send information between your processes. We will be doing this by creating some modified ping pong' programs. Pay attention to the requirements for each program as they may be different in each case. As questions happen I will update the homework with the question and response. You will send an initial 'ping' (an arbitrary message) from one node to another and recieve a 'pong' (also an arbitrary message) back as a response. You will define the number of nodes in using the batch file for CDER, there should be at least 16 nodes. Turn in the source code and the output file to icollege 1. Send/Receive: Write a program that sends a ping from node rank 0 to all the other nodes, the receives a pong" back from all those nodes. The program will then move on to the node rank 1 and do the same thing. Your program will finish when all node ranks have send a ping and received a pong 2. Isend/lreceive: As above, using Isend/lreceive 3. Broadcast: As above, but both 'ping' and 'pong' should be sent with broadcast communication. 4 Scatter/Gather: As above, but scatter the 'ping' then gather the 'pong This part consists of writing four simple programs in MPI. The goal here is to get some experience using the basic communications constructs built into MPI to send information between your processes. We will be doing this by creating some modified ping pong' programs. Pay attention to the requirements for each program as they may be different in each case. As questions happen I will update the homework with the question and response. You will send an initial 'ping' (an arbitrary message) from one node to another and recieve a 'pong' (also an arbitrary message) back as a response. You will define the number of nodes in using the batch file for CDER, there should be at least 16 nodes. Turn in the source code and the output file to icollege 1. Send/Receive: Write a program that sends a ping from node rank 0 to all the other nodes, the receives a pong" back from all those nodes. The program will then move on to the node rank 1 and do the same thing. Your program will finish when all node ranks have send a ping and received a pong 2. Isend/lreceive: As above, using Isend/lreceive 3. Broadcast: As above, but both 'ping' and 'pong' should be sent with broadcast communication. 4 Scatter/Gather: As above, but scatter the 'ping' then gather the 'pong

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

Explain the testing process of accounting 2?

Answered: 1 week ago