Skip to content
Snippets Groups Projects
Commit 7829993a authored by Dirk Pleiter's avatar Dirk Pleiter
Browse files

Clarified formulation of exercise 3

parent cee1e8de
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ Hint: look at the program comments. How does the precision of the calculation de
Hint: edit DARTS to have various input values from 10 to 10000. What do you think will happen to the precision with which we calculate $\pi$ when we split up the work among the nodes?
Now parallelize the serial program. Use only the six basic MPI calls.
Now parallelize the serial program. Use only the following six basic MPI calls: MPI_Init, MPI_Finalize, MPI_Comm_rank, MPI_Comm_size, MPI_Send, MPI_Recv
Hint: As the number of darts and rounds is hard coded then all workers already know it, but each worker should calculate how many are in its share of the DARTS so it does its share of the work. When done, each worker sends its partial sum back to the master, which receives them and calculates the final sum.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment