Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Homework Help/Study Tips Expert

Q 1. In your own words describe the four stages of a machine cycle in Von Neumann Architecture.

Q 2. In your own words discuss what resource sharing is and how it may benefit/deteriorate the performance of a parallel architecture

Q 3. Explain the following terminologies and discuss them in terms of Flynn's taxonomy: a. Task-based parallelism b. Data-based parallelism

Q 4. What is double buffering and which CUDA compute level introduced this mechanism?

Q 5. Discuss the following items in your own terms and give an example of an application which targets to optimize each (in computing). a. Latency b. Throughput

Q 6. Explain in your own terms what the Map communication pattern is and discuss at least two of its properties. Give two example applications for utilizing this pattern for parallelization.

Problem Question: P 1.

Suppose that we have an application in image processing. We can use two platforms: platform A has one CPU with 1 core and Platform B which has a GPU with up to 10,000 cores.

We have a video of colored images and would like to convert the frames in the video to grayscale. We know the following information about our CPU and GPU:

• It take the CPU core 1 microsecond (10-6 sec) to convert one pixel of the image from RGB color to gray scale.

• It takes each GPU kernel 0.5 millisecond (0.5*10-3 sec) to convert one pixel of the image from RGB to gray scale.

• Using the Map operations we can pass 10,000 pixels to the GPU to process in parallel without affecting per-pixel performance. That is, we can run 10,000 threads in parallel in appropriate sized blocks and grids.

a. Calculate the latency of CPU and GPU. (HINT: Latency unit is time)

b. Calculate the throughput of the CPU and GPU. (HINT: Throughput unit is No. of items)

c. Suppose that the video frames are 600x800. Can CPU code run a live streaming of the converted video (30 fps)? How about GPU code?

HINT: calculate the frame rates of the CPU and GPU codes for 600x800 images.

d. Calculate the maximum frame size for a video that can be processed by CPU in real time.

e. Calculate the maximum frame size for a video that can be processed by GPU in real time.

Programming Question: PA 1.

Write a program that takes an input image in RGB and converts its pixel RGB value to gray scale. In openCV the image data is stored in the "data" pointer. If the location of a pixel is calculated at "index" then R=image.data[index], G= image,data[index+1], and B= image.data[index+2];

To convert a pixel from RGB to gray scale all you need to do is to calculate the average of the three RGB values and store it to the output. output.data[outIndex] = (input.data[index]+ input.data[index+1]+ input.data[index+2])/3.0f;

a. Write a CPU side function that takes and RGB image (called input) and converts it to gray scale.

b. Write your code for the GPU that does the color conversion from RGB to gray scale.

Homework Help/Study Tips, Others

  • Category:- Homework Help/Study Tips
  • Reference No.:- M91422062
  • Price:- $60

Guranteed 36 Hours Delivery, In Price:- $60

Have any Question?


Related Questions in Homework Help/Study Tips

Question review the institute of medicines 2010 report the

Question: Review the Institute of Medicine's 2010 report "The Future of Nursing: Leading Change, Advancing Health." Write a 750-1500 word paper discussing the influence of the IOM report on nursing practice. Include the ...

Question 1 considering the concept of black swans described

Question: 1) Considering the concept of "Black Swans" described in the 2014 QHSR, how does this concept relate to changes in the strategic environment or prevailing strategic challenges? Do you agree with the four Black ...

Assignment select a topic for your critical reviewselect

Assignment: Select a Topic for Your Critical Review Select the topic for your Critical Review, which is due in Week Six, and briefly analyze its key features and pathophysiology. You may select from any of the following ...

Question the patient is a 58-year woman diagnosed with

Question: The patient is a 58-year woman diagnosed with Stage IIIB breast cancer which required a mastectomy, chemotherapy and radiation treatments. She has a variety of chronic illnesses, including hypertension, diabete ...

Question dro contingency worksheetdecide which of the

Question: DRO Contingency Worksheet Decide which of the following concepts are most applicable to each scenario: differential reinforcement of other behavior, avoidance contingency, punishment by prevention of reinforcer ...

Question theory and educationcollapseplease review the

Question: Theory and EducationCOLLAPSE Please review the McEwen and Wills (2014) chapter 21: Theoretical Issues in Nursing Curricula and Nursing Instruction and complete the following steps for your initial discussion po ...

Quesiton non-evidence-based treatment humanistic

Quesiton: Non-evidence-based treatment Humanistic Theory Prior to beginning work on this journal, please read Chapter 13 in History and Philosophy of Psychology. This journal invites you to engage in creative thinking re ...

Question select two real companies or businesses you will

Question: Select two real companies or businesses. You will have to give a new name to the companies selected. Your selection will be kept on the secret until the presentation of your final project. Watch these two video ...

Case facebook by matt cook kathryn hicks ricardo rodriguez

Case : Facebook by Matt Cook, Kathryn Hicks, Ricardo Rodriguez, Austin Rogers Questions for Individual Case Analysis Please note that the questions might be different for each case. Respond to the questions in 1-2 pages ...

Consider a 100m2 slab of pavement in toronto latitude 44

Consider a 100m^2 slab of pavement in Toronto (latitude 44 degree N) at noon on the winter solstice. The pavement has an albedo of 0.1. What is the flux of incoming energy in Watts per m^2? (Hint: you will need the solar ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As