[llvm] [AMDGPU][Offload] Enable memory manager use for up to ~3GB allocation size in omp_target_alloc (PR #151882)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 07:29:31 PDT 2025


================
@@ -2944,6 +2944,41 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
     return Plugin::success();
   }
 
+  bool checkIfCoarseGrainMemoryNearOrAbove64GB() {
+    for (AMDGPUMemoryPoolTy *Pool : AllMemoryPools) {
+      if (Pool->isGlobal() && Pool->isCoarseGrained()) {
----------------
jhuber6 wrote:

Prefer early exit

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


More information about the llvm-commits mailing list