Stages of a machine cycle in von neumann architecture

Assignment Help Computer Engineering
Reference no: EM13859733

Essay Questions:

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

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

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

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

Q5. 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

Q6. 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:

P1. 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 [Optional]:

P2. 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, the addition question is

4. Investigation of the compression ratio of the LZW algorithm for different types of files.

The compression ratio is defined as the output size divided by the input file (original) file size. The goal of any compression algorithm is to achieve high compression ratio.

There are different implementations of the LZW algorithm. The compression ratio of the LZW algorithm may have to do with the implementation and the input data file.

2 Investigate how different implementations of LZW algorithm may affect the compression ratio.

Select a few different implementations of LZW (e.g., Winzip, 7-zip, gzip), and some different input file types. Zip the files using different programs and compare the compression ratios. Draw a conclusion how the implementations of LZW algorithm may affect the compression ratio.

3 Investigate how different data file types may affect the compression ratio.

Fix one implementation of LZW algorithm. Try it on different input data files with different types, like text files, binary files (executable programs), Word documents, different types of image files, audio files, video files. Report the compression ratios and draw some conclusions.

What are the extreme compression ratios (extremely high compression ratios and extremely low compression ratios)?

You can contrive some files by your own, e.g., you may author some unusual text files, some Word files, some image for video files just to get some usually high or low compression ratio.

Verified Expert

Reference no: EM13859733

Questions Cloud

Compare the organizational structures of google and walmart : Compare the organizational structures of Google and Walmart.
Write a summary report for the given cases study : Write a summary report for the cases study "Capital Investment and Operational Decision Making in the Offshore Drilling Industry" the report will contain Summary & 5 main learning points.
Concept to empowering a team of direct reports : What is servant leadership and how can you apply the concept to empowering a team of direct reports? Compare and contrast servant leadership to transformational and transactional leadership.
Is sally liable for the balance of the medical bill : Shoplifting is a very serious problem for retail store owners, with millions of dollars of merchandise stolen each year. Obviously, some shoplifters put clothing and other items under their clothes and then attempt to leave the store. Is Sally lia..
Stages of a machine cycle in von neumann architecture : What is double buffering and which CUDA compute level introduced this mechanism - Discuss the following items in your own terms and give an example of an application which targets to optimize each (in computing).
Describe verbally and by sketch and how each pump operates : To become acquainted with the operating principles of Hydraulic Pumps and Air Compressors. Disassemble each hydraulic pump. Neatly sketch or take a photo and label the parts of the pumps.
Cash flow method from the examples : You must show your work when solving these problems.  Please use the cash flow method from the examples in the content, unless you are already familiar with another method and can show your work using the steps of that method.
Can the yearbook club copyright the dvd : Can the yearbook club copyright the DVD? What copyrights if any does the yearbook club, school, or students on the DVD have
What was the original prohibition under the fcpa : In 1977, following the disclosure of Gulf Oil Corporation's $4,000,000 payment to the President of South Korea, and other oil companies questionable payments in foreign countries, the U.S. Congress enacted the "Foreign Corrupt Practices Act (FCPA)". ..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Title page two body pages ref pageaddress the following in

title page two body pages ref page nbspnbspaddress the following in your paperis the victim selection process different

  How many entries

Then in main using pointer notation only, print all the information saved in get_info. In main the function print_info is used to print all the information. get_info is used to save all the data and print_info is used to print all the saved inform..

  Can you find the 2s complement of the given numbers

Perform the given operations and identify, in each case, whether or not an overflow occurs:

  Perform a valuable function as a system

With both full and partial adding systems we combine logic gates to perform a valuable function as a system.

  Network that contains several netware 4.11 servers

Your company has a network that contains several NetWare 4.11 servers and uses IPX as the routing protocol. Each of the network segments has as a minimum  one NetWare server on it. Which of the following responds to a Get Nearest Server (GNS) reque..

  Find two examples of current cloud computing providers

Find two examples of current cloud computing providers and compare their offerings and prices.

  What is a microprocessor

What is a microprocessor. Besides computers, what other products have microprocessors. What current household products that do not contain microprocessors do you think will contain microprocessors in the next 20 years. Why

  Why application designed and written for intel architecture

Determine at least five advantages and five disadvantages of using bytecode or Intermediate Language (IL) in computer applications.

  Questionwrite down java-like pseudocode to specify the

questionwrite down java-like pseudocode to specify the logic for following program application-write down an

  What is the key for table t

What is the highest normal form for table T explain.

  Questiona manufacturer of exercise equipment for health

questiona manufacturer of exercise equipment for health clubs is interested in comparing usage of equipment as in

  Program to select numbers of three finalists

You have three identical prizes to give away and a pool of 10 finalists. The finalists are allocated numbers of 1 to 10. Write down a program to randomly select the numbers of 3 finalists to receive a prize.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd