GPU Programming
Which statement about GPU occupancy is correct?
- A100% occupancy always gives peak performance
- BEven with low occupancy, high performance is possible if each thread has many independent computations, raising instruction-level parallelism
- COccupancy has no relation to performance
Show answer and explanation
Answer: B. Even with low occupancy, high performance is possible if each thread has many independent computations, raising instruction-level parallelism
Occupancy is one means of hiding latency, not the goal. If each thread can issue several independent computations or memory loads, fewer warps suffice to fill the waiting time. Conversely, cutting registers to raise occupancy can increase spills to memory and slow things down. Measuring with a profiler is the reliable way to judge performance.
- A. If something else is the bottleneck, it does not get faster.
- B. Correct. Warp count is not the only way to hide latency.
- C. It affects the ability to hide latency.