You are on page 1of 2

c 




    



p p

› p What is the total number of writes?

1024 writes = 16x16 each matrix and multiply by 4, because we have 4 square matrixes

B p What is the total number of writes that miss in the cache?

128 misses, because of row-major order and one miss per cache line, it means

2048bytes / 16 = 128

C p What is the miss rate?

128/1024 = 12 

p
p

› p What is the total number of writes?

1024 writes = 16x16 each matrix and multiply by 4, because we have 4 square matrixes

B p What is the total number of writes that miss in the cache?

26 misses because of column ± major order, that is reading the first element of p
 pevicts the line that was loaded when we read elements from p   This line also contained
p 
) So when we begin scanning the next column, the reference to the first element of p
 
pmisses

C p What is the miss rate?

26/1024 = 2

p
p p

› p What is the total number of writes?

1024 writes = at first loop we have 26 writes and at other 3 loops we have 768 writes, so
the sum of all is our result

B p What is the total number of writes that miss in the cache?

26 misses for each pair of structures, there is an initial cold miss, followed by  hits So
this loop contains a total of 128 misses The sum is 128 + 128 = 26 misses

C p What is the miss rate?


26/1024 = 2