[clang] [flang] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 11 04:55:01 PST 2025


================
@@ -794,6 +805,12 @@ struct GenericDeviceTy : public DeviceAllocatorTy {
   /// Get the unique identifier of the device.
   const char *getDeviceUid() const { return DeviceUid.c_str(); }
 
+  /// Get the total shared memory per block that can be used in any kernel.
+  uint32_t getMaxBlockSharedMemSize() const { return MaxBlockSharedMemSize; }
+
+  /// Indicate whether the device has native block shared memory.
+  bool hasNativeBlockSharedMem() const { return HasNativeBlockSharedMem; }
----------------
adurang wrote:

how is this different from MaxBlockSharedMemSize > 0 ?

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


More information about the llvm-commits mailing list