================
@@ -350,7 +351,15 @@ Address
CGNVCUDARuntime::prepareKernelArgsLLVMOffload(CodeGenFunction &CGF,
KernelLaunchParamsTy, CharUnits::fromQuantity(16),
"kernel_launch_params");
- auto KernelArgsSize = CGM.getDataLayout().getTypeAllocSize(KernelArgsTy);
+ // Avoid accounting the tail padding for the kernel arguments.
+ auto KernelArgsSize = llvm::TypeSize::getZero();
----------------
jhuber6 wrote:
I don't understand why this "Offload on LLVM" thing is using the OpenMP API in
the first place.
https://github.com/llvm/llvm-project/pull/156229
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits