S4 Computer architecture · Practice
Vector and SIMD processing
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 11 kinds solid
Check
A loop over 500 elements runs on a vector machine with a maximum vector length of 32. How many strips does strip mining create?
Check
A vector loop of 200 elements: MVL 64, loop overhead 15 and startup 60 cycles per strip, 2 chimes. How many cycles does it take?
Check
How many 8-bit elements fit in a 256-bit SIMD register?
Check
A chip has 16 cores at 2 GHz, each with 2 FMA unit(s) of 16 lanes. What's its peak rate, counting an FMA as two operations?
Check
A memory has 16 interleaved banks. How many banks does a stride of 2 words use?
Check
A loop has 3 convoys over vectors of 64 elements on a machine with 8 lane(s). Ignoring startup, how many cycles does it take?
Check
A vector loop over 1000 elements runs with MVL = 32, 15 cycles of loop overhead and 49 of startup per strip, and 4 chimes.
(a)
How many strips does it take?
(b)
How many cycles does it take?
Check
A vector unit reads from 16 memory banks with a stride of 1 words.
(a)
How many banks does it use?
(b)
What fraction of the unit-stride bandwidth does it get?
Check
Strips for 300 elements, MVL 64?
Check
Peak: 8 cores, 2.5 GHz, 2 FMA units of 16 lanes?
Check
Cycles: 3 convoys, 64 elements, 8 lanes?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in S4