Topic summary

Automatic parallelization

Automatic parallelization

Automatic parallelization, also auto-parallelization or autoparallelization, is a compiler optimization in which a compiler or other software tool transforms sequential program code so that some of its operations can execute in parallel. The generated program may use multiple processor cores or hardware threads, vector instructions, or other forms of parallel execution.

Automatic parallelization attempts to reduce the amount of explicit parallel programming required of the programmer. To do so, a compiler must determine whether operations can execute concurrently without changing the behavior of the program and whether executing them in parallel is likely to improve performance. This involves analyses such as dependence analysis, alias analysis and data-flow analysis, together with program transformations that expose or increase usable parallelism.

Loops have historically been an important target for automatic parallelization, particularly in numerical programs with regular array accesses. Automatic parallelization is therefore closely related to automatic vectorization, loop transformation, and other compiler techniques for exploiting parallel hardware.