How is OpenMP used?
OpenMP is usually used in the stepwise parallelization of pre-existing serial programs. Shared-memory parallelism is often called “loop parallelism” because of the typical situation that make OpenMP compiler directives an option. The OpenMP compiler directives are inserted into the serial code by the user. They instruct the compiler to distribute the tasks performed in a certain region of the code (usually a loop) over several sub-processes, which in turn may be executing on different CPUs.