[Openmp-commits] [openmp] [OpenMP] Enable automatic unified shared memory on MI300A. (PR #77512)

via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 9 19:17:39 PST 2024


================
@@ -33,7 +33,12 @@ enum OpenMPOffloadingRequiresDirFlags : int64_t {
   /// unified_shared_memory clause.
   OMP_REQ_UNIFIED_SHARED_MEMORY = 0x008,
   /// dynamic_allocators clause.
-  OMP_REQ_DYNAMIC_ALLOCATORS = 0x010
+  OMP_REQ_DYNAMIC_ALLOCATORS = 0x010,
+  /// Auto zero-copy extension:
+  /// when running on an APU, the GPU plugin may decide to
+  /// run in zero-copy even though the user did not program
+  /// their application with unified_shared_memory requirement.
+  OMPX_REQ_AUTO_ZERO_COPY = 0x020
----------------
carlobertolli wrote:

If you look at the previous review #75999 there was consensus of having this here. I understand this does not match 1-to-1 what OpenMP requires clauses have, but it also means that we do not have to store it in some boolean nor to keep asking the plugin about it.

https://github.com/llvm/llvm-project/pull/77512


More information about the Openmp-commits mailing list