[llvm-branch-commits] [llvm] [Offload] Add GenericPluginTy::get_mem_info (PR #157484)

Jan Patrick Lehr via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Sep 10 05:24:01 PDT 2025


================
@@ -3561,6 +3564,28 @@ struct AMDGPUPluginTy final : public GenericPluginTy {
     return KernelAgents;
   }
 
+  Expected<MemoryInfoTy> getMemoryInfo(const void *TgtPtr) override {
----------------
jplehr wrote:

The code in `OffloadImpl` and the code in the NVidia case had/have `std::lock_guard` guarding. Is this not necessary here or has it been missed, or do I simply not see it?

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


More information about the llvm-branch-commits mailing list