[llvm] [offload] add support for aligned allocations (PR #203353)

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 04:04:17 PDT 2026


================
@@ -148,7 +148,7 @@ GenericKernelTy::getKernelLaunchEnvironment(
     auto AllocOrErr = GenericDevice.dataAlloc(
         KernelEnvironment.Configuration.ReductionDataSize *
             KernelEnvironment.Configuration.ReductionBufferLength,
-        /*HostPtr=*/nullptr, TargetAllocTy::TARGET_ALLOC_DEVICE);
+        /*HostPtr=*/nullptr, TargetAllocTy::TARGET_ALLOC_DEVICE, 0);
----------------
adurang wrote:

It seems this one was missed :)

```suggestion
        /*HostPtr=*/nullptr, TargetAllocTy::TARGET_ALLOC_DEVICE, /*Alignment=*/0);
```

Thanks for changing the others.

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


More information about the llvm-commits mailing list