[llvm] [offload] Add olLaunchKernelWithPtrArgs with an argument pointer array (PR #194333)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 08:53:46 PDT 2026


jhuber6 wrote:

Thanks for putting this together. Obviously, the case we want to avoid is two ways to do the same thing and one returning an error. The fundamental tension is that the runtimes themselves aren't cleanly split one way or another. Whichever one we choose we're going to be making things easier for one but more difficult for another.

One thing I'm unsure about is this portion, as we seem to already work around this. It's part of the ABI that structs need to be naturally aligned, so my expectation would be that you align up, and if you don't match the size of the struct the user passed in, you error. This would also let you cover the OpenCL case.
https://github.com/llvm/llvm-project/blob/main/offload/plugins-nextgen/level_zero/src/L0Kernel.cpp#L499

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


More information about the llvm-commits mailing list