ENGR 325 HOMEWORK 7 KEY (ENGR325)
Calvin College
All 1 results
Sort by
-
ENGR 325 HOMEWORK 7 KEY.
- Exam (elaborations) • 7 pages • 2022
-
- $4.49
- + learn more
ENGR 325 HOMEWORK 7 KEY. 1. (5) In this exercise we look at memory locality properties of matrix computation. The following code 
is written in C, where elements within the same row are stored contiguously. Assume each word is 
a 32-bit integer. (P&H 5.1, §5.1) 
for (I=0; I<8; I++) 
for (J=0; J<8000; J++) 
A[I][J]=B[I][0]+A[J][I]; 
a. How many 32-bit integers can be stored in a 16-byte cache block? 
b. References to which variables exhibit temporal locality? 
c. References to which variab...
Want to regain your expenses?
How much did you already spend on Stuvia? Imagine there are plenty more of you out there paying for study notes, but this time YOU are the seller. Ka-ching! Discover all about earning on Stuvia