Question: A. Calculations (10 pts each) 1. A program takes 12 seconds to run on 1 processor, and 2 seconds to run on 8 processors. What

A. Calculations (10 pts each)

1. A program takes 12 seconds to run on 1 processor, and 2 seconds to run on 8 processors. What is the Speedup? What is the parallel efficiency? What is the parallel cost? How does this information relate to the decision whether or not to run this code in parallel?

2. A program takes 10 seconds to run on 2 processors and 5 seconds to run on 10 processors. Estimate the serial time. What are you assuming about Tseq? (Note: T ime(P) = Tpar P + Tseq)

3. A program takes 20 seconds to run on 4 processors and 40 seconds to run on 2 processors. Estimate Tseq. What is the maximum speedup?

4. A program has a maximum speedup of 10. What does this mean? What is the minimum parallel efficiency?

5. You have a 11000 element array to be processed by 6 threads. Using a static partitioning based on the algorithm from class and from HW2, which array elements are each thread responsible for?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!