Question

A certain program is executed on a multi-core system and consists of two parts: Part1 and...

A certain program is executed on a multi-core system and consists of two parts: Part1 and Part2. Part1 is a single task that is purely sequential and can only be performed by a single processor core. Part2 consists of N independent tasks. Each task in Part2 takes half the time required for the single task in Part1 and must be performed by a single processor core.

a) If the number of cores is 16 and N (the number of independent tasks in Part2) is 32, what is the greatest percentage of the potential speedup that can be provided by the 16-core system compared to a using only one core for the entire program? Recall that the potential speedup is just the number of cores in the multi-core system.

b) For this 16-core system to achieve 80% of its potential speedup, how many independent tasks (each of which takes half the time required for the single task in Part 1) must Part2 contain? Your answer should be a whole number since there are no partial tasks.

c) Is increasing the number of tasks in Part2 an example of weak scaling or an example of strong scaling?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer a

Assuming that serial part takes time equal to X

Individual task in Parallel part takes half of the time of serial part = 0.5X

using Amdahl's

Here number of independent tasks in parallel part is 32 which means total time needed by parallel part if executed on single core machine = 32*0.5X = 16X

P is the fraction of parallel part execution time vs total execution time = 16/(16+1) = 16/17

Answer b

We know that maximum speedup of any application is limited by the fraction of sequential part. If sequential part fraction becomes zero then maximum speedup can be achieved will be equal to number of processors or cores running the application.

In this case maximum speedup will be 16 as number of cores = 16

To achieve 80% of this means speedup = 0.8*16 = 12.8 let's assume we need T number of independent tasks in parallel part.

so fraction of parallel part = T*0.5X/(T*0.5X+X) = 0.5T/(0.5T+1)

So number of independent tasks required to 80% of potential speedup with 16 cores is 118

Answer c

This is example of weak scaling as the number of processing elements are fixed but the problem size is increased per processing element.

Add a comment
Know the answer?
Add Answer to:
A certain program is executed on a multi-core system and consists of two parts: Part1 and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation...

    This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation inside a class. Task One common limitation of programming languages is that the built-in types are limited to smaller finite ranges of storage. For instance, the built-in int type in C++ is 4 bytes in most systems today, allowing for about 4 billion different numbers. The regular int splits this range between positive and negative numbers, but even an unsigned int (assuming 4 bytes)...

  • Need this in c programming

    Question:Many files on our computers, such as executables and many music and video files, are binary files (in contrast to text files). The bytes in these files must be interpreted in ways that depend on the file format. In this exercise, we write a program data-extract to extract integers from a file and save them to an output file. The format of the binary files in this exercise is very simple. The file stores n integers (of type int). Each...

  • HELLO, I need a new unique answer for these Questions, (USE KEYBOARD TO ANSWER NO HANDWRITING...

    HELLO, I need a new unique answer for these Questions, (USE KEYBOARD TO ANSWER NO HANDWRITING PLEASE) ( ANSWER ALL QUESTIONS PLEASE) Subject : Management Information System MIS 201 Case Study: American Water Keeps Data Flowing American Water, founded in 1886, is the largest public water utility in the United States. Headquartered in Voorhees, N.J., the company employs more than 7,000 dedicated professionals who provide drinking water, wastewater and other related services to approximately 16 million people in 35 states,...

  • Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In...

    Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In this scheme, some procedure is used to identify when a deadlock occurs, and then another procedure is used to deal with the blocked processes. One technique to identify a deadlock is to maintain a resource graph that identifies all processes, all resources, and the relationships between them (that is, which processes exclusively own which resources, and which processes are blocked waiting for which...

  • Consider a cylindrical capacitor like that shown in Fig. 24.6. Let d = rb − ra...

    Consider a cylindrical capacitor like that shown in Fig. 24.6. Let d = rb − ra be the spacing between the inner and outer conductors. (a) Let the radii of the two conductors be only slightly different, so that d << ra. Show that the result derived in Example 24.4 (Section 24.1) for the capacitance of a cylindrical capacitor then reduces to Eq. (24.2), the equation for the capacitance of a parallel-plate capacitor, with A being the surface area of...

  • PLEASE SOLVE THESE PROBLEMS! URGENT 8/16/2019 How to Recognize Plagiarism -- Undergraduate Certification Tests : School...

    PLEASE SOLVE THESE PROBLEMS! URGENT 8/16/2019 How to Recognize Plagiarism -- Undergraduate Certification Tests : School of Education, Indiana University Bloomington In the case below, the original source material is given along with a View Site sample of student work. Determine the type of plagiarism by clicking Map the appropriate radio button. Original Source Material Student Version Acknowledge Site Suppose you study a group of successful companies and you find that they emphasize customer focus, or quality improvement, or empowerment;...

  • Which of the following is an advantage of technology in nursing practice? a. inclination of nurses...

    Which of the following is an advantage of technology in nursing practice? a. inclination of nurses to focus on the equipment rather than the patient b. increased ability to monitor patients remotely c. increased confidentiality of patient information d. reliability of internet resources 2. When using computers in direct patient care, it is important to remember to: a. assess the patient and provide care based on the individual's needs b. look up the clinical practice guidelines for each illness use...

  • I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter T...

    I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter Two, “Keys to Successful IT Governance,” from Roger Kroft and Guy Scalzi’s book entitled, IT Governance in Hospitals and Health Systems, please refer to the following assignment instructions below. This chapter consists of interviews with executives identifying mistakes that are made when governing healthcare information technology (IT). The chapter is broken down into subheadings listing areas of importance to understand...

  • Below is the information: It is important to understand the different leadership styles employed by nursing...

    Below is the information: It is important to understand the different leadership styles employed by nursing leaders in healthcare organizations and to understand their significance on nursing practice and patient outcomes, for better or for worse. Objective: Read the articles from Nursing Standard (PDF) and Bradley University (PDF). In -250 words, formulate an opinion on the following: 1. Reflect on an occasion where you experienced ineffective leadership (doesn't have to be in the hospital). What behaviors did they display? What...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT