(openmp-extensions)=
See also {doc}OpenMPSupport for a general overview of OpenMP support in Flang.
--- local: ---
The Flang compiler supports several extensions to OpenMP API features, providing enhanced parallelism and data management capabilities for Fortran applications. This document outlines the supported extensions and their usage within Flang.
The following extensions are supported by Flang.
The implementation of the ATOMIC construct follows OpenMP 6.0 with the following extensions:
x = x is an allowed form of ATOMIC UPDATE. This is motivated by the fact that the equivalent forms x = x+0 or x = x*1 are allowed..true. or .false. is an allowed condition in ATOMIC UPDATE COMPARE. [1]expr equalop x is an allowed condition in ATOMIC UPDATE COMPARE. [1]COMMON block variables in an EQUIVALENCE statement in THREADPRIVATE directives.[1] Code generation for ATOMIC UPDATE COMPARE is not implemented yet.