Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions