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

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Thu Dec 21 10:44:04 PST 2023


================
@@ -3122,6 +3180,12 @@ struct AMDGPUPluginTy final : public GenericPluginTy {
 
   /// The device representing all HSA host agents.
   AMDHostDeviceTy *HostDevice;
+
+  /// Is the plugin associated with an APU?
+  bool IsAPU;
+
+  /// Value of HSA_XNACK environment variable.
+  BoolEnvar OMPX_HSAXnack;
----------------
jdoerfert wrote:

I think we use things like `LIBOMPTARGET_AMDGPU_TEAMS_PER_CU`, but this is really piggy backing on the HSA env var. We will later need XXXXEnvar with multiple names, for now, OMPX_HSAXnack seems ok to me.

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


More information about the Openmp-commits mailing list