[llvm] [offload] add handling of memory alignment to MemoryManagerTy (PR #218418)

Jan Trusiłło via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 06:45:07 PDT 2026


================
@@ -615,18 +615,6 @@ struct CUDADeviceTy : public GenericDeviceTy {
     if (auto Err = Plugin::check(Res, "error in cuMemAlloc[Host|Managed]: %s"))
       return std::move(Err);
 
-    if (Alignment > 0 && !isAddrAligned(Align(Alignment), MemAlloc)) {
----------------
311Volt wrote:

I think this bug should be fixed before merging. Either introduce checks at the plugin interface level, or construct MemoryManagers unconditionally and pass a flag whether pooling should be enabled - neither should be a big patch, I hope. @wlemkows ?

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


More information about the llvm-commits mailing list