[llvm] [offload] add support for aligned allocations (PR #203353)
Piotr Balcer via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 12 02:44:54 PDT 2026
================
@@ -600,20 +615,44 @@ struct CUDADeviceTy : public GenericDeviceTy {
switch (Kind) {
case TARGET_ALLOC_DEFAULT:
case TARGET_ALLOC_DEVICE:
+ if (Alignment > 0 && Alignment > Granularity) {
+ return Plugin::error(
+ ErrorCode::UNSUPPORTED,
+ "too large alignment size for the device allocation");
+ }
+
----------------
pbalcer wrote:
can we move this check out of the switch?
https://github.com/llvm/llvm-project/pull/203353
More information about the llvm-commits
mailing list