[llvm] [Offload] Allow setting null arguments in olLaunchKernel (PR #141958)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Thu May 29 08:01:38 PDT 2025


================
@@ -838,6 +838,12 @@ olLaunchKernel_val(ol_queue_handle_t Queue, ol_device_handle_t Device,
           "validation failure: Queue == NULL && EventOut != NULL");
     }
 
+    if (ArgumentsSize > 0 && ArgumentsData == NULL) {
+      return createOffloadError(
----------------
jhuber6 wrote:

I'd imagine the size of zero is the important bit, and then the pointer value just becomes a no-op since it's not touched.

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


More information about the llvm-commits mailing list