S4 Computer architecture · Practice
GPUs
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
An SM has 65536 registers and room for 64 warps. A kernel uses 24 registers per thread. How many warps fit?
Check
In a warp of 32, 12 threads take a path of 10 instructions and the rest a path of 20. What's the lane efficiency?
Check
A warp loads 4-byte words at a stride of 2 words. How many 32-byte sectors does it touch?
Check
Memory latency is 500 cycles, and each warp computes for 10 cycles between memory accesses. About how many warps does an SM need to stay busy?
Check
A GPU has 80 SMs of 64 FP32 lanes at 1.8 GHz. What's its peak FP32 rate?
Check
Threads of a warp access shared memory (32 banks of 4-byte words) at a stride of 4 words. How many ways does each bank conflict?
Check
An SM has 65 536 registers and room for 48 warps; a kernel uses 48 registers per thread and does 30 cycles of work between 600-cycle memory accesses.
(a)
How many warps fit?
(b)
How many warps does hiding the latency take?
Check
In a warp, 16 of 32 lanes take a 10-instruction path and the rest a 20-instruction path.
(a)
What is the lane efficiency?
Check
Warps that fit: 65536 registers, 56 per thread, at most 64?
Check
Lane efficiency: 4 lanes on 15 instructions, the rest on 25?
Check
Warps to hide 400 cycles with 8 cycles of work each?
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