subject

The following fortran program is to be executed on a computer, and a parallel version is to be executed on a 32-computer cluster. l1: do 10 i = 1, 1024 l2: sum(i) = 0 l3: do 20j = 1, i l4: 20 sum(i) = sum (i) + 1 l5: 10 continue suppose lines 2 and 4 each take two machine cycle times, including all processor and memory-access activities. ignore the overhead caused by the software loop control statements (lines 1,3,5) and all other system overhead and resource conflicts.

a. what is the total execution time (in machine cycle times) of the program on a single computer?

b. divide the i-loop iterations among the 32 computers as follows: computer 1 executes the first 32 iterations (i= 1 to 32), processor 2 executes the next 32 iterations, and so on. what are the execution time and speedup factor compared with part (a)? (note that the computational workload, dictated by the j-loop, is unbalanced among the computers).

c. explain how to modify the parallelizing to facilitate a balanced parallel execution of all the computational workload over 32 computers. by a balanced load is meant an equal number of additions assigned to each computer with respect to both loops.

d. what is the minimum execution time resulting from the parallel execution on 32 computers? what is the resulting speedup over a single computer?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:10
3. (5 points) describe what would be printed by the code below or what error would occur. const char* cstr = "0123456"; const char* ptr = & cstr[4]; cout < < ptr[-1] < < ptr < < endl; 1 4. (5 points) theseus has been trapped in a maze with a minotaur, which is trying to capture him. each round, theseus and the minotaur move through the maze; theseus towards the exit, and the minotaur towards theseus. theseus can move in any of the four cardinal directions, or he can wait for a round to see how the minotaur moves. write code that creates a data type to represent the possible moves that theseus could make.
Answers: 3
question
Computers and Technology, 22.06.2019 10:40
5. illustrate how fine-line inventory classification can be used with product and market segments. what are the benefits and considerations when classifying inventory by product, market, and product/market?
Answers: 2
question
Computers and Technology, 22.06.2019 16:30
The most common battery cable terminal is a that provides a large surface contact area with the ability to tighten the terminal onto the battery post using a nut and bolt.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
The following fortran program is to be executed on a computer, and a parallel version is to be execu...
Questions
question
Mathematics, 03.12.2020 22:00
question
Mathematics, 03.12.2020 22:00
question
Mathematics, 03.12.2020 22:00
question
Mathematics, 03.12.2020 22:00
question
Health, 03.12.2020 22:00