[all-commits] [llvm/llvm-project] e19565: [Offload][AMDGPU] Only allow memory pool access to...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri May 31 11:35:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e19565c5c4679ac7f5414f35137f6df4f70e713a
      https://github.com/llvm/llvm-project/commit/e19565c5c4679ac7f5414f35137f6df4f70e713a
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-05-31 (Fri, 31 May 2024)

  Changed paths:
    M offload/plugins-nextgen/amdgpu/src/rtl.cpp

  Log Message:
  -----------
  [Offload][AMDGPU] Only allow memory pool access to valid agents (#93969)

Summary:
The logic since the next-gen plugins was added was that every single
agent would get access to a memory pool we allocated. This is necessary
for things like fine-grained memory and to faciliate d2d copied.
However, there are cases where an agent cannot legally access a memory
pool. We have a debug check for this, but it would always be triggered
in these situations because both uses of the function simply passed
every agent. This patch changes the behavior by only enabling memory
pool access for agents that can access the memory pool.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list