[llvm] [Offload] Allow setting null arguments in olLaunchKernel and fix amdgpu handling for empty kernel arguments (PR #141958)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 05:39:37 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:
I don't think it is? It should be an error condition if a size is specified and ArgumentsData hasn't been.
https://github.com/llvm/llvm-project/pull/141958
More information about the llvm-commits
mailing list