Engineering, 21.01.2021 18:30 austinlogan3218
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.
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 line?
b) References to which variables exhibit temporal locality?
c) References to which variables exhibit spatial locality?
Locality is affected by both the reference order and data layout. The same computation can also be written below
in Matlab, which differs from C by storing matrix elements within the same column contiguously in memory.
for i = 1 : 8
for j = 1 : 8000
A( i , j ) = B( i , 1 ) + A( j , i );
end
end
d) References to which variables exhibit temporal locality?
e) References to which variables exhibit spatial locality?
Answers: 2
Engineering, 04.07.2019 18:10
Apump is used to circulate hot water in a home heating system. water enters the well-insulated pump operating at steady state at a rate of 0.42 gal/min. the inlet pressure and temperature are 14.7 lbf/in.2, and 180°f, respectively; at the exit the pressure is 60 lbf/in.2 the pump requires 1/15 hp of power input. water can be modeled as an incompressible substance with constant density of 60.58 lb/ft3 and constant specific heat of 1 btu/lb or. neglecting kinetic and potential energy effects, determine the temperature change, in °r, as the water flows through the pump.
Answers: 1
Engineering, 04.07.2019 18:10
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
Engineering, 04.07.2019 18:10
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
Engineering, 04.07.2019 18:20
Inadequate stores control is not an obstacle to effective work order system. (clo4) a)-true b)-false
Answers: 3
In This exercise, we look at memory locality properties of matrix computation. The following code is...
English, 12.07.2019 10:30
Social Studies, 12.07.2019 10:30
Mathematics, 12.07.2019 10:30
Business, 12.07.2019 10:30
Mathematics, 12.07.2019 10:30
Mathematics, 12.07.2019 10:30
Biology, 12.07.2019 10:30
Mathematics, 12.07.2019 10:30