diff --git a/pyopencl/elementwise.py b/pyopencl/elementwise.py index fcb94ee9b91f668066303ad8859c600f69ac84e9..dae42b7e70883c18f88f39461f925ae124926d82 100644 --- a/pyopencl/elementwise.py +++ b/pyopencl/elementwise.py @@ -310,7 +310,7 @@ class ElementwiseKernel: if capture_as is not None: kernel.set_args(*invocation_args) - return kernel.capture_call( + kernel.capture_call( capture_as, queue, gs, ls, *invocation_args, wait_for=wait_for)