GPU Programming
Which describes occupancy on a GPU?
- AThe fraction of the GPU die area occupied by arithmetic units
- BThe ratio of warps actually resident on an SM to the maximum it can hold
- CThe fraction of GPU memory filled with data
Show answer and explanation
Answer: B. The ratio of warps actually resident on an SM to the maximum it can hold
Each SM has a maximum number of resident warps, and the number actually resident depends on registers per thread, shared memory per block, block size and so on. That ratio is the occupancy. With low occupancy, few warps are available to run while others wait for memory, so execution units sit idle more often. CUDA provides tools for calculating occupancy.
- A. It is not about die area.
- B. Correct. It is determined by register and shared-memory use and similar.
- C. It is not memory utilization.