Oracle® Solaris Studio 12.4: Debugging a Program With dbx

Exit Print View

Updated: January 2015
 
 

Execution Sequence of OpenMP Code

When you are single-stepping inside a parallel region in an OpenMP program, the execution sequence might not be the same as the source code sequence. This difference in sequence occurs because the code in the parallel region is usually transformed and rearranged by the compiler. Single-stepping in OpenMP code is similar to single-stepping in optimized code where the optimizer has usually moved code around.