Sun Studio 12: Performance Analyzer

OpenMP Metrics

When processing a clock-profile event for an OpenMP program, two metrics corresponding to the time spent in each of two states in the OpenMP system are shown. They are "OMP work" and "OMP wait".

Time is accumulated in "OMP work" whenever a thread is executing from the user code, whether in serial or parallel. Time is accumulated in "OMP wait" whenever a thread is waiting for something before it can proceed, whether the wait is a busy-wait (spin-wait), or sleeping. The sum of these two metrics matches the "Total LWP Time" metric in the clock profiles.