[llvm] [Offload] Allow setting null arguments in olLaunchKernel (PR #141958)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 6 05:05:41 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(
----------------
RossBrunton wrote:
Is there anything either of you want changing about the error condition here?
https://github.com/llvm/llvm-project/pull/141958
More information about the llvm-commits
mailing list