See the RSL illuminance loop construct in the RenderMan documentation.

RenderMan Illuminance Loop