forked from OSchip/llvm-project
![]() Atomic handling of map clauses was introduced to comply with the OpenMP standard (see D104418). However, many apps won't need this feature which can be costly in certain situations. To allow for applications to opt-out we now introduce the `LIBOMPTARGET_MAP_FORCE_ATOMIC` environment flag that voids the atomicity guarantee of the standard for map clauses again, shifting the burden to the user. This patch also de-duplicates the code that introduces the events used to enforce atomicity as a cleanup. Differential Revision: https://reviews.llvm.org/D117627 |
||
---|---|---|
.. | ||
GPUGenericMode.rst | ||
GPUSPMDMode.rst | ||
Offloading.rst | ||
Overview.rst | ||
Runtimes.rst |