Question
Please fill up the below table to solve the following Parallel programming EXERCISE Different Partitions for 14 component Vector among four Processes Process Block Cyclic
Please fill up the below table to solve the following Parallel programming EXERCISE
Different Partitions for 14 component Vector among four Processes | |||
Process | Block | Cyclic | Block-Cyclic Blocksize = 2 |
0 |
|
|
|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
EXERCISE:
Suppose comm_sz = 4 and suppose that x is a vector with n = 14 components. a. How would the components of x be distributed among the processes in a program that used a block distribution?
b. How would the components of x be distributed among the processes in a program that used a cyclic distribution? c. How would the components of x be distributed among the processes in a program that used a block-cyclic distribution with blocksize b = 2? You should try to make your distributions general so that they could be used regardless of what comm_sz and n are. You should also try to make your distributions fair so that if q and r are any two processes, the difference between the number of components assigned to q and the number of components assigned to r is as small as possible.
Note: Please fill up the above table only to solve this exercise.
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