diff --git a/pyopencl/algorithm.py b/pyopencl/algorithm.py index a11653400..2dadf0ae5 100644 --- a/pyopencl/algorithm.py +++ b/pyopencl/algorithm.py @@ -1143,6 +1143,12 @@ def __call__(self, queue, n_objects, *args, **kwargs): from pyopencl.tools import VectorArg if isinstance(arg_descr, VectorArg): from pyopencl import MemoryObject + if arg_val is None: + data_args.append(arg_val) + if arg_descr.with_offset: + data_args.append(0) + continue + if isinstance(arg_val, MemoryObject): data_args.append(arg_val) if arg_descr.with_offset: