Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. [Amdahl was an optimist] In practice, applying an optimization to one part of a codebase can require overheads that did not exist in the

image text in transcribed

2. [Amdahl was an optimist] In practice, applying an optimization to one part of a codebase can require overheads that did not exist in the original execution or even have negative impacts on logically unrelated portions of the code. Consider an already.parallel code whose execution consists of SERIAL (S), PARALLEL-COMPUTE (PC), and PARALLEL-SYNC (PS) regions, where, with 1 thread, S-596, PC-90%, and PS-5% of execution time. Assume that the amount of execution required for PS grows linearly with the number of threads, but is itself 80% parallelizable, and that PC receives a 1:1 linear speedup with the number of threads. Find 1. the number of threads that maximizes the performance of this code, and 2. the speedup of a 100% parallelizable PS over 1) for the same number of threads that maximizes the performance of 1). note - no knowledge of parallel threading or synchronization is required to solve this problem - it is a direct application of Amdahl's law) 2. [Amdahl was an optimist] In practice, applying an optimization to one part of a codebase can require overheads that did not exist in the original execution or even have negative impacts on logically unrelated portions of the code. Consider an already.parallel code whose execution consists of SERIAL (S), PARALLEL-COMPUTE (PC), and PARALLEL-SYNC (PS) regions, where, with 1 thread, S-596, PC-90%, and PS-5% of execution time. Assume that the amount of execution required for PS grows linearly with the number of threads, but is itself 80% parallelizable, and that PC receives a 1:1 linear speedup with the number of threads. Find 1. the number of threads that maximizes the performance of this code, and 2. the speedup of a 100% parallelizable PS over 1) for the same number of threads that maximizes the performance of 1). note - no knowledge of parallel threading or synchronization is required to solve this problem - it is a direct application of Amdahl's law)

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

Step: 3

blur-text-image

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago