S4 Computer architecture · Practice
The roofline model
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 10 kinds solid
Check
A machine peaks at 1500 GFLOPS with 50 GB/s. What does a kernel of intensity 10 flop/byte attain?
Check
A machine peaks at 2500 GFLOPS with 60 GB/s of memory bandwidth. Where's its ridge point?
Check
A loop does 3 operations per element, reading 2 arrays and writing 2, with 8-byte elements and no reuse. What's its arithmetic intensity?
Check
A kernel processes 1 billion elements, each 4 operations and 32 bytes of DRAM traffic, on a 3000 GFLOPS, 100 GB/s machine. What's its minimum run time?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
On a 1000 GFLOPS, 100 GB/s machine, what fraction of peak can a kernel of intensity 50 reach?
Check
A matrix multiply is blocked with 64 × 64 tiles of 4-byte numbers. About what intensity does it reach, at operations for elements moved?
Check
A machine peaks at 500 GFLOP/s with 50 GB/s. A kernel of 100 G flops has an intensity of 16 flop/byte.
(a)
Where is the ridge point?
(b)
What rate can the kernel reach?
(c)
What is its shortest run time?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Attainable: 700 GFLOPS, 80 GB/s, intensity 5?
Check
Ridge point: 1200 GFLOPS, 100 GB/s?
Check
Intensity: 2 ops, 1 reads, 1 write of 8-byte elements?
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