[Openmp-commits] [openmp] [OpenMP][libomptarget] Enable automatic unified shared memory executi… (PR #75999)

via Openmp-commits openmp-commits at lists.llvm.org
Thu Dec 21 11:31:21 PST 2023


================
@@ -208,6 +213,13 @@ struct PluginManager {
 
   /// Devices associated with plugins, accesses to the container are exclusive.
   ProtectedObj<DeviceContainerTy> Devices;
+
+  /// Whe 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.
+  /// This execution modality is called auto zero-copy and it is
+  /// cached information from the Plugin.
+  bool UseAutoZeroCopy = false;
----------------
carlobertolli wrote:

I am happy to have a new OMP_REQ_AUTO_ZERO_COPY requirement flag.
I am already done moving the property to a device one and I would have just to change this to set the req flag instead of having the boolean check. Will do that today if this makes sense.

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


More information about the Openmp-commits mailing list