OpenMP Loop Visualizer

OpenMP Loop Visualizer

A team of threads splits the iterations of a parallel for loop. With the default static schedule, each thread gets one contiguous chunk of about N / OMP_NUM_THREADS iterations. When it doesn't divide evenly, the first N % OMP_NUM_THREADS threads take one extra.

Settings

Code, as seen by the selected thread


    

Thread team

Click a thread to see its iterations.

Iterations 0 to N − 1

Gaps mark where one thread's chunk ends and the next begins. Tinted cells belong to the selected thread. Click any cell to see its addition.