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...
Fear of missing out? Then don’t!
Do you wonder why so many students wear nice clothes, have money to spare and enjoy tons of free time? Well, they sell on Stuvia! Imagine your study notes being downloaded a dozen times for $15 each. Every. Single. Day. Discover all about earning on Stuvia