Assignment 1 Milestone
See the page Assignment 1 Introduction for an overview.
Your task here is to implement some basic MPI programs in C, and discuss aspects of their behaviour.
In this first part, we are asking you to work with program 3.1 m
Copyright By PowCoder代写 加微信 powcoder
1. Compile and run the program to replicate the output given in the textbook. First with one process, then with 4.
2. Write a brief and precise explanation of how the program works.
3. Draw a diagram showing all of the messages sent when executed with 4 tasks. Number the messages in the order in which they occur.
4. Question: Will the messages be ordered in the same way for all executions of the program? Explain.
5. Create a second version of the program with only one change.
This change is to use the special constant MPL_ANY_SOURCE in the call to receive.
6. Explain what effect, if any, you expect this change to have.
7. Then try to observe whether or not this happens. Explain your method and present results.
What you need to hand in
As mentioned in Assignment 1 Introduction. the primary mode of assessment is a report. Submit this in PDF format. with the name Report.PDF.
In this report, include your output from Step 1. and answers as required for the other steps.
Also hand in the two programs that you used. Use the names hello.c and hello 1.c.
We won’t formally mark your Milestone – we will just check to see that you have produced the work required for this part. You will get 1.5 of the 10 marks
for that. This intermediate deadline is important because it makes sure that you are familiar with the infrastructure needed to do your assignments. Try to
finish the Milestone before its deadline: The Final is more complicated.
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com