[Openmp-commits] [openmp] [Libomptarget] Fix RPC-based malloc on NVPTX (PR #72440)

Jan Patrick Lehr via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 17 00:33:00 PST 2023


================
@@ -2064,6 +2064,7 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
     switch (Kind) {
     case TARGET_ALLOC_DEFAULT:
     case TARGET_ALLOC_DEVICE:
+    case TARGET_ALLOC_DEVICE_NON_BLOCKING:
       MemoryPool = CoarseGrainedMemoryPools[0];
----------------
jplehr wrote:

Probably more of a general question here: Why is this always the `0`th entry? Can this ever be problematic?

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


More information about the Openmp-commits mailing list