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

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Tue Dec 19 19:47:24 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;
jdoerfert wrote:

I'd figure this is a device property. I can easily imagine an APU system with a dedicated card and this property should not apply to all devices. If we make it global, it doesn't need a flag, we could simply implicitly set OMP_REQ_UNIFIED_SHARED_MEMORY in the requirements, no?


More information about the Openmp-commits mailing list