Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started