Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

Problem: Explore the cache statistics for two versions of matrix multiplication.

Description: Implement the matrix multiplication with two different versions:

- Version 1: Standard matrix multiplication

- Version 2: Matrix multiplication with loop interchanged.

Version 1:

For I = 0 to N-1

For J =0 to N-1

Sum = 0

For K =0 to N-1

Sum += A[I][K] * B [K][J]

C[I][J] = Sum

Version 2: Interchanged J and K loop.

//initialize C[I][J] to 0

For I =0 to N -1

For K = 0 to N -1

For J = 0 to N-1

C[I][J] += A[I][K] * B[K][J]

Find the cache statistics for both of these versions, for N = 10, 100, 1000. Following two cache

configurations can be used for these experiments

Configuration 1: 4KB, Block size of 32 bytes, direct map

Configuration 2: 4KB, Block size of 32 byte, set associative with 2 sets.

Cache can be configured using the preference in ARMSim. For getting cache statistics, first put a breakpoint on SWI 0x11 instruction, and then note the statistics from cache-> statistics.

To simplify the experiment, you may left the data arrays un-initialize, therefore making the matrix 0 by default.

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M91582009
  • Price:- $60

Guranteed 36 Hours Delivery, In Price:- $60

Have any Question?


Related Questions in Statistics and Probability

The number of cell phones per 100 residents in countries in

The number of cell phones per 100 residents in countries in Europe is given in table 9.3.9 for the year 2010. The number of cell phones per 100 residents in countries of the Americas is given in table 9.3.10 also for the ...

The rate of inflation in year 1 is expected to be 14 year

The rate of inflation in year 1 is expected to be 1.4%, year two is 1.8%, and years three through five is expected to be 2%. Assume the real risk-free rate, r*, is 3% for all maturities. What should the yield to maturity ...

A travel analyst claims that the mean room rates at a

A travel analyst claims that the mean room rates at a three-star hotel in Chicago is greater than $152. In a random sample of 36 three-star hotel rooms in Chicago, the mean room rate is $165 with a standard deviation of ...

On the production line the company finds that 956 of

On the production line the company finds that 95.6% of products are made correctly. You are responsible for quality control and take batches of 30 products from the line and test them. What number of the 30 being incorre ...

Abbb-rated corporate bond has a yield to maturity of 128

A? BBB-rated corporate bond has a yield to maturity of 12.8 %. A U.S. treasury security has a yield to maturity of 11.4 %. These yields are quoted as APRs with semiannual compounding. Both bonds pay? semi-annual coupons ...

1940 randomly selected adults were asked if they think they

1940 randomly selected adults were asked if they think they are financially better off than their parents. The following table gives the two-way classification of the responses based on the education levels of the person ...

42 credit card holders are selected at random for each

42 credit card holders are selected at random. For each, their current credit card balance is recorded. The average for these 42 people is = $600. Assume that the current balance of all credit card holders follows a norm ...

In 2013 gallup conducted a poll and found a 95 confidence

In 2013, Gallup conducted a poll and found a 95% confidence interval of the proportion of Americans who believe it is the government's responsibility for health care. Give the statistical interpretation.

A coffee manufacturer is interested in the mean daily

A coffee manufacturer is interested in the mean daily consumption of regular-coffee drinkers and decaffeinated coffee drinkers. The random sample of 50 regular-coffee drinker show a mean of 3.84 cups per day. A sample of ...

A log yard uses 3 digit numbers to identify their current

A log yard uses 3 digit numbers to identify their current stock: a) How many 3 digit numbers can be formed from the digits 0, 1, 2, 3, 4 and 5 if each digit can be used only once and the number cannot begin with 0? b) Wh ...

  • 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