[llvm] [Offload] Allow setting null arguments in olLaunchKernel and fix amdgpu handling for empty kernel arguments (PR #141958)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri May 30 02:29:44 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(
----------------
arsenm wrote:

I think I means the && ArgumentsData == NULL is redundant 

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


More information about the llvm-commits mailing list